All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -mm] char, moxa: Make isabrds variable global.
@ 2009-11-03  4:29 Rakib Mullick
  2009-11-07  5:08 ` Rakib Mullick
  0 siblings, 1 reply; 6+ messages in thread
From: Rakib Mullick @ 2009-11-03  4:29 UTC (permalink / raw)
  To: Andrew Morton; +Cc: jirislaby, LKML

 When CONFIG_MODULE=n and CONFIG_PCI=n, then variable
isabrds becomes unused variable. So place it outside
moxa_init solves this problem.

 We were warned by the following warning:

drivers/char/moxa.c: In function `moxa_init':
drivers/char/moxa.c:1012: warning: unused variable `isabrds'

Signed-off-by: Rakib Mullick <rakib.mullick@gmail.com>
----

--- linus/drivers/char/moxa.c	2009-09-11 20:39:02.000000000 +0600
+++ rakib/drivers/char/moxa.c	2009-11-03 10:57:44.000000000 +0600
@@ -1007,9 +1007,10 @@ static struct pci_driver moxa_pci_driver
 };
 #endif /* CONFIG_PCI */

+static unsigned int __initdata isabrds;
+
 static int __init moxa_init(void)
 {
-	unsigned int isabrds = 0;
 	int retval = 0;

 	printk(KERN_INFO "MOXA Intellio family driver version %s\n",

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

end of thread, other threads:[~2009-11-10 17:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-03  4:29 [PATCH -mm] char, moxa: Make isabrds variable global Rakib Mullick
2009-11-07  5:08 ` Rakib Mullick
2009-11-07 10:27   ` Jiri Slaby
2009-11-09  2:06     ` Rakib Mullick
2009-11-09  8:20       ` Jiri Slaby
2009-11-10 17:42         ` Rakib Mullick

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.