Skip to contentSkip to conversation

Input: Remove keyboard warning if CONFIG_INPUT_KEYBOARD is not set.

PATCH New Pieter du Preez 1 participant 1 message Oct 6, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Input: Remove keyboard warning if CONFIG_INPUT_KEYBOARD is not set.

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.

---
 drivers/char/keyboard.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/char/keyboard.c +2 -0
index 7b3a212..d0a8961 100644
@@ -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)
 {
Signature · 1 line
1.5.6.5