Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xtest: stats: remove <sys/stat.h> #744

Merged
merged 1 commit into from
May 6, 2024

Conversation

jforissier
Copy link
Contributor

The <sys/stat.h> header is not used by host/xtest/stats.c and causes a conflict when musl is used. Therefore remove it.

| In file included from optee-test/4.1.0/recipe-sysroot/usr/include/sys/stat.h:23,
| from optee-test/4.1.0/git/host/xtest/stats.c:17:
| optee-test/4.1.0/recipe-sysroot/usr/include/bits/stat.h:17:26: error: expected identifier or '(' before '[' token
| 17 | unsigned __unused[2];
| | ^

Reported-by: Jon Mason [email protected]

@jbech-linaro
Copy link
Contributor

Acked-by: Joakim Bech <[email protected]>

@jenswi-linaro
Copy link
Contributor

Acked-by: Jens Wiklander <[email protected]>

@etienne-lms
Copy link
Contributor

Acked-by: Etienne Carriere <[email protected]>

The <sys/stat.h> header is not used by host/xtest/stats.c and causes a
conflict when musl is used. Therefore remove it.

 | In file included from optee-test/4.1.0/recipe-sysroot/usr/include/sys/stat.h:23,
 | from optee-test/4.1.0/git/host/xtest/stats.c:17:
 | optee-test/4.1.0/recipe-sysroot/usr/include/bits/stat.h:17:26: error: expected identifier or '(' before '[' token
 | 17 | unsigned __unused[2];
 | | ^

Reported-by: Jon Mason <[email protected]>
Signed-off-by: Jerome Forissier <[email protected]>
Acked-by: Joakim Bech <[email protected]>
Acked-by: Jens Wiklander <[email protected]>
Acked-by: Etienne Carriere <[email protected]>
@jforissier jforissier merged commit 3b0a814 into OP-TEE:master May 6, 2024
1 check passed
@jforissier jforissier deleted the stats-musl-error branch May 6, 2024 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants