* [PATCH] Input: Remove keyboard warning if CONFIG_INPUT_KEYBOARD is not set.
@ 2008-10-06 21:08 Pieter du Preez
0 siblings, 0 replies; only message in thread
From: Pieter du Preez @ 2008-10-06 21:08 UTC (permalink / raw)
To: linux-input
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-10-06 21:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-06 21:08 [PATCH] Input: Remove keyboard warning if CONFIG_INPUT_KEYBOARD is not set Pieter du Preez
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).