* [PATCH] Fix some ARM builds due to HID brokenness
@ 2006-12-22 17:09 Russell King
2006-12-22 21:42 ` Jiri Kosina
0 siblings, 1 reply; 2+ messages in thread
From: Russell King @ 2006-12-22 17:09 UTC (permalink / raw)
To: Linux Kernel List; +Cc: jkosina, linux-input
The new location for HID is extremely annoying:
1. the help text implies that you need to enable it for any
keyboard or mouse attached to the system. This is not
correct.
2. it defaults to 'y'. When you have input deselected, this
causes the kernel to fail to link:
drivers/built-in.o: In function `usb_hidinput_input_event':
hid-input.c:(.text+0x55054): undefined reference to `input_ff_event'
drivers/built-in.o: In function `hidinput_hid_event':
hid-input.c:(.text+0x6446c): undefined reference to `input_event'
hid-input.c:(.text+0x644f8): undefined reference to `input_event'
hid-input.c:(.text+0x64550): undefined reference to `input_event'
hid-input.c:(.text+0x64590): undefined reference to `input_event'
hid-input.c:(.text+0x645b8): undefined reference to `input_event'
drivers/built-in.o: In function `hidinput_disconnect':
hid-input.c:(.text+0x64624): undefined reference to `input_unregister_device'
drivers/built-in.o: In function `hidinput_report_event':
hid-input.c:(.text+0x64670): undefined reference to `input_event'
drivers/built-in.o: In function `hidinput_connect':
hid-input.c:(.text+0x64824): undefined reference to `input_allocate_device'
hid-input.c:(.text+0x675e0): undefined reference to `input_register_device'
hid-input.c:(.text+0x67698): undefined reference to `input_free_device'
hid-input.c:(.text+0x676b8): undefined reference to `input_register_device'
make: *** [.tmp_vmlinux1] Error 1
Fix the second problem by making it depend on INPUT. The first
problem is left as an exercise for the HID maintainers to solve.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig
index 96d4a0b..1ccc222 100644
--- a/drivers/hid/Kconfig
+++ b/drivers/hid/Kconfig
@@ -6,6 +6,7 @@ menu "HID Devices"
config HID
tristate "Generic HID support"
+ depends on INPUT
default y
---help---
Say Y here if you want generic HID support to connect keyboards,
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix some ARM builds due to HID brokenness
2006-12-22 17:09 [PATCH] Fix some ARM builds due to HID brokenness Russell King
@ 2006-12-22 21:42 ` Jiri Kosina
0 siblings, 0 replies; 2+ messages in thread
From: Jiri Kosina @ 2006-12-22 21:42 UTC (permalink / raw)
To: Russell King; +Cc: Linux Kernel List, linux-input
On Fri, 22 Dec 2006, Russell King wrote:
> The new location for HID is extremely annoying:
Hi Russell,
well, the location itself was a subject to various discussions. At the
end, drivers/hid won against drivers/input/hid, because, as Marcel
correctly pointed out, in case of embedded systems there might be a need
to have an abstraction for non-input devices and then we don't want to
bundle it to tightly to input. There is no such implementation yet, but
moving this code around is quite painful, so we don't want to do it more
than once.
> 1. the help text implies that you need to enable it for any
> keyboard or mouse attached to the system. This is not
> correct.
This help text has been there for ages, it was duplicated from previous
help text from usb hid implementation, but you are right that the wording
might confuse someone. Will change it eventually, thanks.
> 2. it defaults to 'y'. When you have input deselected, this
> causes the kernel to fail to link:
> Fix the second problem by making it depend on INPUT.
> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Applied, thanks.
--
Jiri Kosina
SUSE Labs
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-12-22 21:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-22 17:09 [PATCH] Fix some ARM builds due to HID brokenness Russell King
2006-12-22 21:42 ` Jiri Kosina
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox