Skip to content

Commit

Permalink
kbuild: modpost build fix
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Sam Ravnborg <[email protected]>
  • Loading branch information
Andrew Morton authored and Sam Ravnborg committed Jun 10, 2006
1 parent b817f6f commit 6449bd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/mod/modpost.c
Original file line number Diff line number Diff line change
Expand Up @@ -1084,14 +1084,15 @@ void check_license(struct module *mod)
struct symbol *s, *exp;

for (s = mod->unres; s; s = s->next) {
const char *basename;
if (mod->gpl_compatible == 1) {
/* GPL-compatible modules may use all symbols */
continue;
}
exp = find_symbol(s->name);
if (!exp || exp->module == mod)
continue;
const char *basename = strrchr(mod->name, '/');
basename = strrchr(mod->name, '/');
if (basename)
basename++;
switch (exp->export) {
Expand Down

0 comments on commit 6449bd6

Please sign in to comment.