lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <200708170017.56815.jesper.juhl@gmail.com>
Date:	Fri, 17 Aug 2007 00:17:56 +0200
From:	Jesper Juhl <jesper.juhl@...il.com>
To:	Jiri Slaby <jirislaby@...il.com>
Cc:	support@...a.com.tw, Alan Cox <alan@...hat.com>,
	linux-kernel@...r.kernel.org, Jesper Juhl <jesper.juhl@...il.com>
Subject: [PATCH] Moxa: Fix warning: 'CheckIsMoxaMust' defined but not used


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@...il.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 */
 


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ