From: Pieter du Preez <pdupreez@gmail.com>
To: linux-input@vger.kernel.org
Subject: [PATCH] Input: Remove keyboard warning if CONFIG_INPUT_KEYBOARD is not set.
Date: Mon, 6 Oct 2008 23:08:03 +0200 [thread overview]
Message-ID: <20081006210803.GB29707@gmail.com> (raw)
Many embedded systems have no keyboard and will have the
CONFIG_INPUT_KEYBOARD option unset. On compilation, they
however get nagged as follows:
#warning "Cannot generate rawmode keyboard for your architecture yet."
There is no reason for this, as there is no keyboard.
This patch removes this warning if CONFIG_INPUT_KEYBOARD
is not set.
Signed-off-by: Pieter du Preez <pdupreez@gmail.com>
---
drivers/char/keyboard.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/char/keyboard.c b/drivers/char/keyboard.c
index 7b3a212..d0a8961 100644
--- a/drivers/char/keyboard.c
+++ b/drivers/char/keyboard.c
@@ -1123,7 +1123,9 @@ static int emulate_raw(struct vc_data *vc, unsigned int keycode,
#define HW_RAW(dev) 0
+#if defined CONFIG_INPUT_KEYBOARD
#warning "Cannot generate rawmode keyboard for your architecture yet."
+#endif
static int emulate_raw(struct vc_data *vc, unsigned int keycode, unsigned char up_flag)
{
--
1.5.6.5
reply other threads:[~2008-10-06 21:16 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=20081006210803.GB29707@gmail.com \
--to=pdupreez@gmail.com \
--cc=linux-input@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).