Drop .owner for kernel >= 6.4 #12
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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,
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 ...