From: Stephen Rothwell Date: Thu, 24 May 2007 04:16:13 +0000 (+1000) Subject: kbuild: suppress modpost warnings for references from the .toc section as used by... X-Git-Tag: MMI-PSA29.97-13-9~41446^2~20 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1abe02fef95366208c264635a886785d18fd38bb;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git kbuild: suppress modpost warnings for references from the .toc section as used by powerpc We should do better here by effetively "dereferencing" references to the .toc (or the .got2) section, but that is much harder. Signed-off-by: Stephen Rothwell Signed-off-by: Sam Ravnborg --- diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 256b3d272e2e..fa33a6b92a9d 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -870,9 +870,12 @@ static void warn_sec_mismatch(const char *modname, const char *fromsec, return; /* fromsec whitelist - without a valid 'before' - * powerpc has a GOT table in .got2 section */ + * powerpc has a GOT table in .got2 section + * and also a .toc section */ if (strcmp(fromsec, ".got2") == 0) return; + if (strcmp(fromsec, ".toc") == 0) + return; if (before && after) { warn("%s(%s+0x%llx): Section mismatch: reference to %s:%s "