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

Linux kernel driver build fixes for 6.4 up to 6.9 #4

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

afaerber
Copy link

@afaerber afaerber commented Jul 3, 2024

Update kernel driver code to build successfully on SUSE Linux Micro 6.0 (6.4 based) and openSUSE Tumbleweed (currently at 6.9, rolling release).

Specifically adjust to changes in class_create() and vm_flags by checking LINUX_VERSION_CODE.

afaerber added 2 commits July 3, 2024 10:41
Linux kernel v6.4 dropped the module argument of class_create().
Conditionalize its usage accordingly.

Signed-off-by: Andreas Färber <[email protected]>
Linux kernel v6.3 introduced helpers to manipulate vm_flags.
At v6.4 latest it's no longer working to manipulate vm_flags directly.

Conditionalize setting flags based on kernel version.

Signed-off-by: Andreas Färber <[email protected]>
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.

1 participant