Skip to content

Conversation

@rountree
Copy link
Collaborator

Fixes #135

gcc v9.0 made -Wmissing-attributes more strict, and as a result the #defines around module_init() and cleanup_module() started generating warnings. The #defines were fixed around kernel 5.0.

This PR #undefs those two symbols and #defines them according to this patch:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0b999ae3614d09d97a1575936bcee884f912b10e

Not tested for icc or clang.

gcc v9.0 made -Wmissing-attributes more strict, and as a result
the #defines around module_init() and cleanup_module() started
generating warnings.  The #defines were fixed around kernel 5.0.

This PR #undefs those two symbols and #defines them according to
this patch:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0b999ae3614d09d97a1575936bcee884f912b10e

Not tested for icc or clang.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"less restrictive attribute than its target" warnings

3 participants