mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Moxa: Fix warning: 'CheckIsMoxaMust' defined but not used
@ 2007-08-16 22:17 Jesper Juhl
  0 siblings, 0 replies; only message in thread
From: Jesper Juhl @ 2007-08-16 22:17 UTC (permalink / raw)
  To: Jiri Slaby; +Cc: support, Alan Cox, linux-kernel, Jesper Juhl


This should have been part of the previous Moxa patch I just sent, but I 
forgot to include it, so here it is as a seperate patch. Sorry about that.


This fixes the warning : 
  drivers/char/mxser.c:427: warning: 'CheckIsMoxaMust' defined but not used
when building Moxa driver without CONFIG_PCI.


Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
---

 mxser.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- linux-2.6/drivers/char/mxser.c~	2007-08-17 00:11:23.000000000 +0200
+++ linux-2.6/drivers/char/mxser.c	2007-08-17 00:11:23.000000000 +0200
@@ -424,7 +424,7 @@
 static void mxser_startrx(struct tty_struct *tty);
 static void mxser_stoprx(struct tty_struct *tty);
 
-
+#ifdef CONFIG_PCI
 static int CheckIsMoxaMust(int io)
 {
 	u8 oldmcr, hwid;
@@ -447,6 +447,7 @@
 	}
 	return MOXA_OTHER_UART;
 }
+#endif
 
 /* above is modified by Victor Yu. 08-15-2002 */
 



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-08-16 22:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-16 22:17 [PATCH] Moxa: Fix warning: 'CheckIsMoxaMust' defined but not used Jesper Juhl

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

all inboxes | Powered by JetHome®