-
Notifications
You must be signed in to change notification settings - Fork 39
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
Build failure on RHEL9 #14
Comments
Hmm, kernel backports are a real bummer... How about this (untested)? #if __has_include(<linux/dma-buf.h>)
MODULE_IMPORT_NS(DMA_BUF);
#endif |
Yep that does it! Verified to build on RHEL9 with your patch. |
Okay, thank you for verifying! |
robertzaage
added a commit
to robertzaage/gasket-driver
that referenced
this issue
Aug 18, 2023
mbrooksx
pushed a commit
that referenced
this issue
Sep 5, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems like it's the same issue as #3. I can see that it's already patched in #6, but that patch only imports
DMA_BUF
on kernel version 5.16.0 or higher. I manually deleted the conditional checks and it compiled successfully.I guess what's happening here is that a Redhat backport causes its "5.14.0" kernels to behave similarly to 5.16.0+ kernels. So my question is, is there a better way to check whether importing
DMA_BUF
namespace is necessary than a hard-coded version comparison? Sorry for not being of much help; I'm not a C developer.The text was updated successfully, but these errors were encountered: