Skip to contentSkip to conversation

mac_hid: fix build error if MAC_EMUMOUSEBTN && !INPUT

PATCH New Andreas Herrmann 1 participant 1 message Sep 17, 2007 Linux for power macintosh

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mac_hid: fix build error if MAC_EMUMOUSEBTN && !INPUT

Hi,

With current git an invalid kernel configuration is selectable which leads to kernel build errors for mac_hid. To prevent this selection I suggest follwoing patch.

Regards,

Andreas

Signature · 13 lines
Build error if MAC_EMUMOUSEBTN && !INPUT:

  LD      .tmp_vmlinux1
drivers/built-in.o: In function `input_report_key':
include/linux/input.h:1158: undefined reference to `input_event'
    ...

Auto-select INPUT for MAC_EMUMOUSEBTN option.

Signed-off-by: Andreas Herrmann <[email protected]>
---
 drivers/macintosh/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/macintosh/Kconfig +1 -0
index 56cd899..77f50b6 100644
@@ -172,6 +172,7 @@ config INPUT_ADBHID
 
 config MAC_EMUMOUSEBTN
 	bool "Support for mouse button 2+3 emulation"
+	select INPUT
 	help
 	  This provides generic support for emulating the 2nd and 3rd mouse
 	  button with keypresses.  If you say Y here, the emulation is still
Signature · 1 line
1.5.3