aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorChuck Ebbert <76306.1226@compuserve.com>2006-09-29 04:59:57 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-09-29 12:18:11 -0400
commite6cab99bb478e067b1a7a120333ff326954a2412 (patch)
tree59211a97c63eaa87db1b8e44343eb15f1be21d1a /kernel
parent0e51a720b9d9ea5ebf0fda39108919c6626bffa3 (diff)
[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>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/unwind.c4
1 files changed, 3 insertions, 1 deletions
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 {
102 unsigned long size; 102 unsigned long size;
103 struct unwind_table *link; 103 struct unwind_table *link;
104 const char *name; 104 const char *name;
105} root_table, *last_table; 105} root_table;
106 106
107struct unwind_item { 107struct unwind_item {
108 enum item_location { 108 enum item_location {
@@ -174,6 +174,8 @@ void __init unwind_init(void)
174 174
175#ifdef CONFIG_MODULES 175#ifdef CONFIG_MODULES
176 176
177static struct unwind_table *last_table;
178
177/* Must be called with module_mutex held. */ 179/* Must be called with module_mutex held. */
178void *unwind_add_table(struct module *module, 180void *unwind_add_table(struct module *module,
179 const void *table_start, 181 const void *table_start,