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 jon.mason@arm.com

@jbech-linaro
Copy link
Contributor

Acked-by: Joakim Bech <joakim.bech@linaro.org>

@jenswi-linaro
Copy link
Contributor

Acked-by: Jens Wiklander <jens.wiklander@linaro.org>

@etienne-lms
Copy link
Contributor

Acked-by: Etienne Carriere <etienne.carriere@foss.st.com>

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 <jon.mason@arm.com>
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by: Joakim Bech <joakim.bech@linaro.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
Acked-by: Etienne Carriere <etienne.carriere@foss.st.com>
@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.

None yet

4 participants