From 6775cf99f56764e45ce2ebfd7c557de5d50a9bb8 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Fri, 9 Jun 2006 20:45:06 -0700 Subject: [PATCH] --- yaml --- r: 30607 b: refs/heads/master c: 6449bd621ba51ef652ac5bda632eeabbc18dd296 h: refs/heads/master i: 30605: 6ae5c32776d6fe8cbe79a13f20c2e56502ff0cf2 30603: 9ef0628180ca38732c0eead7dd01bc28bda54b31 30599: 934cf21563ccaab4156514d5f592c017b2a9e628 30591: 59f050c081d178a1dc3a41aab8c621ec8ed7a078 v: v3 --- [refs] | 2 +- trunk/scripts/mod/modpost.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index d65ebd004a82..c6800f8e938b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b817f6feff4a565b08f0e699a5790b4008b8f494 +refs/heads/master: 6449bd621ba51ef652ac5bda632eeabbc18dd296 diff --git a/trunk/scripts/mod/modpost.c b/trunk/scripts/mod/modpost.c index baa4d83d29a8..f27ddb841df8 100644 --- a/trunk/scripts/mod/modpost.c +++ b/trunk/scripts/mod/modpost.c @@ -1084,6 +1084,7 @@ 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; @@ -1091,7 +1092,7 @@ void check_license(struct module *mod) 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) {