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

nat46-module: fix modpost warning #42

Merged
merged 1 commit into from
Jul 18, 2024
Merged

Conversation

angus19
Copy link
Contributor

@angus19 angus19 commented Jul 18, 2024

WARNING: modpost: nat46.o(.data+0x30): Section mismatch in reference from the variable nat46_netops to the function .init.text:nat46_ns_init() The variable nat46_netops references
the function __init nat46_ns_init()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable: *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

WARNING: modpost: nat46.o(.data+0x30): Section mismatch in reference from the variable nat46_netops to the function .init.text:nat46_ns_init()
The variable nat46_netops references
the function __init nat46_ns_init()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console
@angus19
Copy link
Contributor Author

angus19 commented Jul 18, 2024

Warning observed during cross compiling.

Copy link
Owner

@ayourtch ayourtch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks a lot!

@ayourtch ayourtch merged commit 3a9f630 into ayourtch:master Jul 18, 2024
1 check passed
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