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@xxxxxxxxx> --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html