-
Notifications
You must be signed in to change notification settings - Fork 240
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
tee-supplicant: fix build with kernel < 4.16 #369
Conversation
Wouldn't that mean exporting that .h file to other packages? |
I'm not an expert in optee-client, I don't even understand why a local copy of |
The copy is there to provide early access to new features. It needs to be put somewhere reachable by tee-supplicant too, but it should at the same time not be exported to other packages. |
Then, I would suggest to replace
by
Makefile will also have to be updated. Does it seems acceptable? |
Works for me. |
PR updated |
Please add a fixes tag It would be nice with a short description of what the patch does also apart from all the trouble that the offending commit caused. |
I updated the PR as requested |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Acked-by: Jerome Forissier <[email protected]>
|
I updated the PR to also fix |
Good. Please add the |
Commit 3ac968e moved linux/tee.h from libteec/include to libteec/src resulting in the following build failure with any kernel < 4.16 (i.e before torvalds/linux@033ddf1): /home/buildroot/autobuild/instance-3/output-1/build/optee-client-4.0.0/tee-supplicant/src/tee_supplicant.c: In function 'register_local_shm': /home/buildroot/autobuild/instance-3/output-1/build/optee-client-4.0.0/tee-supplicant/src/tee_supplicant.c:356:44: error: storage size of 'data' isn't known 356 | struct tee_ioctl_shm_register_data data; | ^~~~ To fix this build failure, update CMakeLists.txt and Makefile of tee-supplicant to add libteec/src to the include directories. Fixes: 3ac968e ("Makefile, cmake: move teec related headers") Acked-by: Jerome Forissier <[email protected]> Acked-by: Jens Wiklander <[email protected]> Signed-off-by: Fabrice Fontaine <[email protected]>
Commit 3ac968e moved
linux/tee.h
fromlibteec/include
tolibteec/src
resulting in the following build failure with any kernel < 4.16 (i.e before torvalds/linux@033ddf1):To fix this build failure, update
CMakeLists.txt
andMakefile
of tee-supplicant to addlibteec/src
to the include directories.Fixes: 3ac968e ("Makefile, cmake: move teec related headers")