Commit 35899c57 authored by Randy Dunlap's avatar Randy Dunlap Committed by Sam Ravnborg

kbuild: ignore smp_locks section warnings from init/exit code

Add ".smp_locks" section to whitelist as being safe from
init and exit sections.
Signed-off-by: default avatarRandy Dunlap <rdunlap@xenotime.net>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent 1a0f3d42
...@@ -821,6 +821,7 @@ static int init_section_ref_ok(const char *name) ...@@ -821,6 +821,7 @@ static int init_section_ref_ok(const char *name)
".pci_fixup_final", ".pci_fixup_final",
".pdr", ".pdr",
"__param", "__param",
".smp_locks",
NULL NULL
}; };
/* Start of section names */ /* Start of section names */
...@@ -892,6 +893,7 @@ static int exit_section_ref_ok(const char *name) ...@@ -892,6 +893,7 @@ static int exit_section_ref_ok(const char *name)
".exitcall.exit", ".exitcall.exit",
".eh_frame", ".eh_frame",
".stab", ".stab",
".smp_locks",
NULL NULL
}; };
/* Start of section names */ /* Start of section names */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment