Skip to content

Commit

Permalink
genksyms: fix metag symbol prefix on crc symbols
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
James Hogan committed Mar 2, 2013
1 parent f75c28d commit 97c3ec6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/genksyms/genksyms.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 97c3ec6

Please sign in to comment.