Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=1abe02fef95366208c264635a886785d18fd38bb
Commit:     1abe02fef95366208c264635a886785d18fd38bb
Parent:     56a974fa2d595fe6ebe433c525b8232ead539b76
Author:     Stephen Rothwell <[EMAIL PROTECTED]>
AuthorDate: Thu May 24 14:16:13 2007 +1000
Committer:  Sam Ravnborg <[EMAIL PROTECTED]>
CommitDate: Mon Jul 16 22:40:22 2007 +0200

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Sam Ravnborg <[EMAIL PROTECTED]>
---
 scripts/mod/modpost.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 256b3d2..fa33a6b 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 "
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to