public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kernel/module: fix warning when !CONFIG_DYNAMIC_PRINTK_DEBUG
@ 2008-08-20 14:13 Alexander Beregalov
  2008-08-20 14:24 ` Greg KH
  0 siblings, 1 reply; 6+ messages in thread
From: Alexander Beregalov @ 2008-08-20 14:13 UTC (permalink / raw)
  To: jbaron, gregkh, linux-kernel

From: Alexander Beregalov <a.beregalov@gmail.com>

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@gmail.com>
---

 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;

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-09-11 10:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-20 14:13 [PATCH] kernel/module: fix warning when !CONFIG_DYNAMIC_PRINTK_DEBUG Alexander Beregalov
2008-08-20 14:24 ` Greg KH
2008-08-20 15:13   ` Greg KH
2008-08-21 20:35     ` Jason Baron
2008-08-21 20:45       ` Jason Baron
2008-09-11  9:31         ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox