aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAndi Kleen <andi@firstfloor.org>2008-05-08 07:41:11 -0400
committerSam Ravnborg <sam@ravnborg.org>2008-05-11 04:10:51 -0400
commitfd1db0a31319bd21c521b197ce17c557556b821b (patch)
tree5c1100d26ca0fd8d74ca01b79f11b2a10ff826da /scripts
parenta95bcfac2b5f353f99c6a338d77eb5584ab35d83 (diff)
kbuild: disable modpost warnings for linkonce sections
Disable modpost warnings for linkonce sections My build gives lots of warnings like WARNING: sound/core/snd.o (.gnu.linkonce.wi.mpspec_def.h.30779716): unexpected section name. The (.[number]+) following section name are ld generated and not expected. Did you forget to use "ax"/"aw" in a .S file? Note that for example <linux/init.h> contains section definitions for use in .S files. But for .linkonce. duplicated sections are actually ok and expected. So just disable the warning for this case. Signed-off-by: Andi Kleen <ak@linux.intel.com> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mod/modpost.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 757294b4f322..508c5895c680 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -721,7 +721,7 @@ static int check_section(const char *modname, const char *sec)
721 /* consume all digits */ 721 /* consume all digits */
722 while (*e && e != sec && isdigit(*e)) 722 while (*e && e != sec && isdigit(*e))
723 e--; 723 e--;
724 if (*e == '.') { 724 if (*e == '.' && !strstr(sec, ".linkonce")) {
725 warn("%s (%s): unexpected section name.\n" 725 warn("%s (%s): unexpected section name.\n"
726 "The (.[number]+) following section name are " 726 "The (.[number]+) following section name are "
727 "ld generated and not expected.\n" 727 "ld generated and not expected.\n"