aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@xenotime.net>2006-06-07 19:23:26 -0400
committerSam Ravnborg <sam@mars.ravnborg.org>2006-06-08 14:20:23 -0400
commit35899c57516be6eaa42cc27151767c52d75b2979 (patch)
treea21db210c02e9387f93a8015d757a624710652cc /scripts
parent1a0f3d422bb9ac959383a5ed1a4127f5900f56a8 (diff)
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: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mod/modpost.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index d0f86ed43f7a..94047bc99961 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -821,6 +821,7 @@ static int init_section_ref_ok(const char *name)
821 ".pci_fixup_final", 821 ".pci_fixup_final",
822 ".pdr", 822 ".pdr",
823 "__param", 823 "__param",
824 ".smp_locks",
824 NULL 825 NULL
825 }; 826 };
826 /* Start of section names */ 827 /* Start of section names */
@@ -892,6 +893,7 @@ static int exit_section_ref_ok(const char *name)
892 ".exitcall.exit", 893 ".exitcall.exit",
893 ".eh_frame", 894 ".eh_frame",
894 ".stab", 895 ".stab",
896 ".smp_locks",
895 NULL 897 NULL
896 }; 898 };
897 /* Start of section names */ 899 /* Start of section names */