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>
        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) {