mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jesper Juhl <jesper.juhl@gmail.com>
To: Jiri Slaby <jirislaby@gmail.com>
Cc: support@moxa.com.tw, Alan Cox <alan@redhat.com>,
	linux-kernel@vger.kernel.org, Jesper Juhl <jesper.juhl@gmail.com>
Subject: [PATCH] Moxa: Fix warning: 'CheckIsMoxaMust' defined but not used
Date: Fri, 17 Aug 2007 00:17:56 +0200	[thread overview]
Message-ID: <200708170017.56815.jesper.juhl@gmail.com> (raw)


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 */
 



                 reply	other threads:[~2007-08-16 22:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200708170017.56815.jesper.juhl@gmail.com \
    --to=jesper.juhl@gmail.com \
    --cc=alan@redhat.com \
    --cc=jirislaby@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=support@moxa.com.tw \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®