Commit 97c3ec63089fdcd2abf66619b913900909841dc0

Authored by James Hogan
1 parent f75c28d896

genksyms: fix metag symbol prefix on crc symbols

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>

Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff

scripts/genksyms/genksyms.c
... ... @@ -826,7 +826,8 @@
826 826 genksyms_usage();
827 827 return 1;
828 828 }
829   - if ((strcmp(arch, "h8300") == 0) || (strcmp(arch, "blackfin") == 0))
  829 + if ((strcmp(arch, "h8300") == 0) || (strcmp(arch, "blackfin") == 0) ||
  830 + (strcmp(arch, "metag") == 0))
830 831 mod_prefix = "_";
831 832 {
832 833 extern int yydebug;