Skip to content

Drop .owner for kernel >= 6.4 #12

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

Merged
merged 1 commit into from
Apr 14, 2025
Merged

Drop .owner for kernel >= 6.4 #12

merged 1 commit into from
Apr 14, 2025

Conversation

EricccTaiwan
Copy link
Contributor

Kernel 6.4+ sets .owner automatically. Remove manual assignment to avoid build issues and keep compatibility with older versions.

This change is based on the upstream patch by Greg Kroah-Hartman: [PATCH 02/12] drivers: remove struct module * setting from struct class
The patch was first introduced in v6.4-rc1 and officially included in the stable release v6.4.
To verify this,

$ git log --grep='remove struct module \* setting from struct class'  
$ # Find the commit hash related to the patch
$ git tag --contains 10a03c36b7dd7759788ebc613091d313b60f93e0 
$ # Find the earliest kernel version that includes the commit

Relevant tags include:

...
v6.14
v6.14-rc1
v6.14-rc2
v6.14-rc3
v6.14-rc4
v6.14-rc5
v6.14-rc6
v6.14-rc7
v6.4 # the earliest kernel version
v6.4-rc1
v6.4-rc2
v6.4-rc3
v6.4-rc4
v6.4-rc5
v6.4-rc6
v6.4-rc7
v6.5
...

Kernel 6.4+ sets .owner automatically. Remove manual assignment
to avoid build issues and keep compatibility with older versions.
@jserv jserv merged commit 06e424f into sysprog21:main Apr 14, 2025
@jserv
Copy link
Contributor

jserv commented Apr 14, 2025

Thank @EricccTaiwan for contributing. See if you can figure out similar changes in LKMPG.

@EricccTaiwan
Copy link
Contributor Author

Ok!

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.

2 participants