]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
genksyms: fix metag symbol prefix on crc symbols
authorJames Hogan <james.hogan@imgtec.com>
Mon, 11 Feb 2013 15:40:24 +0000 (15:40 +0000)
committerJames Hogan <james.hogan@imgtec.com>
Sat, 2 Mar 2013 20:11:13 +0000 (20:11 +0000)
Meta uses symbol prefixes, so add "metag" to the list of architectures
to set the mod_prefix to "_" for. This fixes __crc_* symbols to add the
extra underscore to match _CRC_SYMBOL macro in <linux/export.h> and so
that modpost finds them.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
scripts/genksyms/genksyms.c

index 8a106499ec4fd627c183dc12eac1a607f2fabd80..d25e4a118d3783f52d0bfbd3d74c347b7e1d7c08 100644 (file)
@@ -826,7 +826,8 @@ int main(int argc, char **argv)
                        genksyms_usage();
                        return 1;
                }
-       if ((strcmp(arch, "h8300") == 0) || (strcmp(arch, "blackfin") == 0))
+       if ((strcmp(arch, "h8300") == 0) || (strcmp(arch, "blackfin") == 0) ||
+           (strcmp(arch, "metag") == 0))
                mod_prefix = "_";
        {
                extern int yydebug;