[PATCH] kernel/module: fix warning when!CONFIG_DYNAMIC_PRINTK_DEBUG

From: Alexander Beregalov
Date: Wed Aug 20 2008 - 10:13:46 EST


From: Alexander Beregalov <a.beregalov@xxxxxxxxx>

kernel/module.c: In function 'load_module':
kernel/module.c:1839: warning: unused variable 'value'
kernel/module.c:1838: warning: unused variable 'iter'


Signed-off-by: Alexander Beregalov <a.beregalov@xxxxxxxxx>
---

kernel/module.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/kernel/module.c b/kernel/module.c
index 1721320..5a1258e 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -1835,8 +1835,10 @@ static struct module *load_module(void __user *umod,
unsigned int markersindex;
unsigned int markersstringsindex;
unsigned int verboseindex;
+#ifdef CONFIG_DYNAMIC_PRINTK_DEBUG
struct mod_debug *iter;
unsigned long value;
+#endif
unsigned int tracepointsindex;
unsigned int tracepointsstringsindex;
struct module *mod;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/