]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
kbuild: fix reversed symbol name order in modpost
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 17 Feb 2008 13:12:10 +0000 (14:12 +0100)
committerSam Ravnborg <sam@ravnborg.org>
Tue, 19 Feb 2008 19:45:14 +0000 (20:45 +0100)
XXXINIT_TO_INIT and XXXEXIT_TO_EXIT warnings use the reversed symbol name order
in the suggestion, e.g.:

    WARNING: vmlinux.o(.meminit.text+0x36c): Section mismatch in reference from the function free_area_init_core() to the function .init.text:setup_usemap()
    The function __meminit free_area_init_core() references
    a function __init setup_usemap().
    If free_area_init_core is only used by setup_usemap then
    annotate free_area_init_core with a matching annotation.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/mod/modpost.c

index 61742771c65dd28341a24fbdf992479350d209a3..695b5d657cf59cc89ba1a4989d7052085e942abf 100644 (file)
@@ -1200,7 +1200,7 @@ static void report_sec_mismatch(const char *modname, enum mismatch mismatch,
                "annotate %s with a matching annotation.\n",
                from, sec2annotation(fromsec), fromsym, from_p,
                to, sec2annotation(tosec), tosym, to_p,
-               fromsym, tosym, fromsym);
+               tosym, fromsym, tosym);
                break;
        case INIT_TO_EXIT:
                fprintf(stderr,