When compiling optee_test v4.1 (in yocto) with musl, I see the following error:
| 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];
| | ^
This is similar to commit 1013c49
And similar to that commit, I was able to remove the header file in question and it compiles without issue.