public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mac_hid: fix build error if MAC_EMUMOUSEBTN && !INPUT
@ 2007-09-17 21:20 Andreas Herrmann
  0 siblings, 0 replies; only message in thread
From: Andreas Herrmann @ 2007-09-17 21:20 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: linux-kernel

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
-- 
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 <aherrman@arcor.de>
---
 drivers/macintosh/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/macintosh/Kconfig b/drivers/macintosh/Kconfig
index 56cd899..77f50b6 100644
--- a/drivers/macintosh/Kconfig
+++ b/drivers/macintosh/Kconfig
@@ -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
-- 
1.5.3



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-09-17 21:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-17 21:20 [PATCH] mac_hid: fix build error if MAC_EMUMOUSEBTN && !INPUT Andreas Herrmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox