[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 <jbeulich@novell.com> Cc: Andi Kleen <ak@muc.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
0e51a720b9
commit
e6cab99bb4
@ -102,7 +102,7 @@ static struct unwind_table {
|
|||||||
unsigned long size;
|
unsigned long size;
|
||||||
struct unwind_table *link;
|
struct unwind_table *link;
|
||||||
const char *name;
|
const char *name;
|
||||||
} root_table, *last_table;
|
} root_table;
|
||||||
|
|
||||||
struct unwind_item {
|
struct unwind_item {
|
||||||
enum item_location {
|
enum item_location {
|
||||||
@ -174,6 +174,8 @@ void __init unwind_init(void)
|
|||||||
|
|
||||||
#ifdef CONFIG_MODULES
|
#ifdef CONFIG_MODULES
|
||||||
|
|
||||||
|
static struct unwind_table *last_table;
|
||||||
|
|
||||||
/* Must be called with module_mutex held. */
|
/* Must be called with module_mutex held. */
|
||||||
void *unwind_add_table(struct module *module,
|
void *unwind_add_table(struct module *module,
|
||||||
const void *table_start,
|
const void *table_start,
|
||||||
|
Loading…
Reference in New Issue
Block a user