diff options
author | Andrew Morton <akpm@osdl.org> | 2006-06-09 23:45:06 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2006-06-10 01:58:14 -0400 |
commit | 6449bd621ba51ef652ac5bda632eeabbc18dd296 (patch) | |
tree | e43c03946cf1c45c62247981db5c12c6f9668b71 | |
parent | b817f6feff4a565b08f0e699a5790b4008b8f494 (diff) |
kbuild: modpost build fix
scripts/mod/modpost.c: In function `check_license':
scripts/mod/modpost.c:1094: parse error before `const'
scripts/mod/modpost.c:1095: `basename' undeclared (first use in this function)
scripts/mod/modpost.c:1095: (Each undeclared identifier is reported only once
scripts/mod/modpost.c:1095: for each function it appears in.)
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
-rw-r--r-- | scripts/mod/modpost.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index baa4d83d29a8..f27ddb841df8 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c | |||
@@ -1084,6 +1084,7 @@ void check_license(struct module *mod) | |||
1084 | struct symbol *s, *exp; | 1084 | struct symbol *s, *exp; |
1085 | 1085 | ||
1086 | for (s = mod->unres; s; s = s->next) { | 1086 | for (s = mod->unres; s; s = s->next) { |
1087 | const char *basename; | ||
1087 | if (mod->gpl_compatible == 1) { | 1088 | if (mod->gpl_compatible == 1) { |
1088 | /* GPL-compatible modules may use all symbols */ | 1089 | /* GPL-compatible modules may use all symbols */ |
1089 | continue; | 1090 | continue; |
@@ -1091,7 +1092,7 @@ void check_license(struct module *mod) | |||
1091 | exp = find_symbol(s->name); | 1092 | exp = find_symbol(s->name); |
1092 | if (!exp || exp->module == mod) | 1093 | if (!exp || exp->module == mod) |
1093 | continue; | 1094 | continue; |
1094 | const char *basename = strrchr(mod->name, '/'); | 1095 | basename = strrchr(mod->name, '/'); |
1095 | if (basename) | 1096 | if (basename) |
1096 | basename++; | 1097 | basename++; |
1097 | switch (exp->export) { | 1098 | switch (exp->export) { |