Input: Remove keyboard warning if CONFIG_INPUT_KEYBOARD is not set.
Subsystems (2)
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.
Signed-off-by Pieter du Preez <[email protected]>
--- drivers/char/keyboard.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/char/keyboard.c +2 -0
@@ -1123,7 +1123,9 @@ static int emulate_raw(struct vc_data *vc, unsigned int keycode,#define HW_RAW (dev) 0 +#if definedCONFIG_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