From: Chuck Ebbert <76306.1226@compuserve.com> Date: Fri, 29 Sep 2006 08:59:57 +0000 (-0700) Subject: [PATCH] unwind: fix unused variable warning when !CONFIG_MODULES X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e6cab99bb478e067b1a7a120333ff326954a2412;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git [PATCH] unwind: fix unused variable warning when !CONFIG_MODULES Fix "variable defined but not used" compiler warning in unwind.c when CONFIG_MODULES is not set. Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com> Cc: Jan Beulich Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/unwind.c b/kernel/unwind.c index 3430475fcd88..2e2368607aab 100644 --- a/kernel/unwind.c +++ b/kernel/unwind.c @@ -102,7 +102,7 @@ static struct unwind_table { unsigned long size; struct unwind_table *link; const char *name; -} root_table, *last_table; +} root_table; struct unwind_item { enum item_location { @@ -174,6 +174,8 @@ void __init unwind_init(void) #ifdef CONFIG_MODULES +static struct unwind_table *last_table; + /* Must be called with module_mutex held. */ void *unwind_add_table(struct module *module, const void *table_start,