6 Oct 23:07
[PATCH] Input: Remove keyboard warning if CONFIG_INPUT_KEYBOARD is not set.
From: Pieter du Preez <pdupreez <at> gmail.com>
Subject: [PATCH] Input: Remove keyboard warning if CONFIG_INPUT_KEYBOARD is not set.
Newsgroups: gmane.linux.kernel.input
Date: 2008-10-06 21:08:03 GMT
Subject: [PATCH] Input: Remove keyboard warning if CONFIG_INPUT_KEYBOARD is not set.
Newsgroups: gmane.linux.kernel.input
Date: 2008-10-06 21:08:03 GMT
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 <at> 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)
{
(Continue reading)
RSS Feed