提交 6449bd62 编写于 作者: A Andrew Morton 提交者: Sam Ravnborg

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: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
上级 b817f6fe
...@@ -1084,6 +1084,7 @@ void check_license(struct module *mod) ...@@ -1084,6 +1084,7 @@ void check_license(struct module *mod)
struct symbol *s, *exp; struct symbol *s, *exp;
for (s = mod->unres; s; s = s->next) { for (s = mod->unres; s; s = s->next) {
const char *basename;
if (mod->gpl_compatible == 1) { if (mod->gpl_compatible == 1) {
/* GPL-compatible modules may use all symbols */ /* GPL-compatible modules may use all symbols */
continue; continue;
...@@ -1091,7 +1092,7 @@ void check_license(struct module *mod) ...@@ -1091,7 +1092,7 @@ void check_license(struct module *mod)
exp = find_symbol(s->name); exp = find_symbol(s->name);
if (!exp || exp->module == mod) if (!exp || exp->module == mod)
continue; continue;
const char *basename = strrchr(mod->name, '/'); basename = strrchr(mod->name, '/');
if (basename) if (basename)
basename++; basename++;
switch (exp->export) { switch (exp->export) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册