next-20080611 rt2x00: build failure
Subsystems (2)
when CONFIG_INPUT=n and
# CONFIG_NEW_LEDS is not setCONFIG_LEDS_CLASS=y
(full config attached)
vmlinux.o: In function `iwl_rfkill_unregister':
(.text+0x174cdc): undefined reference to input_unregister_device' vmlinux.o: In function iwl_rfkill_init':
(.text+0x174d9f): undefined reference to input_allocate_device' vmlinux.o: In function iwl_rfkill_init':
(.text+0x174e2d): undefined reference to input_register_device' vmlinux.o: In function iwl_rfkill_init':
(.text+0x174e53): undefined reference to `input_free_device'
vmlinux.o: In function `rt2x00rfkill_allocate_polldev':
rt2x00rfkill.c:(.text+0x176dc4): undefined reference to input_allocate_polled_device' vmlinux.o: In function rt2x00rfkill_poll':
rt2x00rfkill.c:(.text+0x176e8b): undefined reference to input_event' rt2x00rfkill.c:(.text+0x176e9f): undefined reference to input_event' vmlinux.o: In function `rt2x00rfkill_unregister':
(.text+0x176eca): undefined reference to input_unregister_polled_device' vmlinux.o: In function rt2x00rfkill_free':
(.text+0x176efc): undefined reference to input_free_polled_device' vmlinux.o: In function rt2x00rfkill_suspend':
(.text+0x176f37): undefined reference to input_free_polled_device' vmlinux.o: In function rt2x00rfkill_register':
(.text+0x176fd8): undefined reference to input_register_polled_device' vmlinux.o: In function rt2x00leds_resume':
(.text+0x1772c0): undefined reference to led_classdev_resume' vmlinux.o: In function rt2x00leds_resume':
(.text+0x1772d4): undefined reference to led_classdev_resume' vmlinux.o: In function rt2x00leds_resume':
(.text+0x1772e8): undefined reference to led_classdev_resume' vmlinux.o: In function rt2x00leds_suspend':
(.text+0x17730a): undefined reference to led_classdev_suspend' vmlinux.o: In function rt2x00leds_suspend':
(.text+0x17731e): undefined reference to led_classdev_suspend' vmlinux.o: In function rt2x00leds_suspend':
(.text+0x17732f): undefined reference to led_classdev_suspend' vmlinux.o: In function rt2x00leds_unregister_led':
rt2x00leds.c:(.text+0x177348): undefined reference to led_classdev_unregister' vmlinux.o: In function rt2x00leds_register_led':
rt2x00leds.c:(.text+0x1773c0): undefined reference to led_classdev_register' vmlinux.o: In function rfkill_disconnect':
rfkill-input.c:(.text+0x209e4c): undefined reference to input_close_device' rfkill-input.c:(.text+0x209e53): undefined reference to input_unregister_handle' vmlinux.o: In function `rfkill_connect':
rfkill-input.c:(.text+0x209ea1): undefined reference to input_register_handle' rfkill-input.c:(.text+0x209eae): undefined reference to input_open_device' rfkill-input.c:(.text+0x209ebb): undefined reference to input_unregister_handle' vmlinux.o: In function rfkill_handler_init':
rfkill-input.c:(.init.text+0x17405): undefined reference to input_register_handler' vmlinux.o: In function rfkill_handler_exit':
rfkill-input.c:(.exit.text+0x194f): undefined reference to `input_unregister_handler' make[1]: *** [vmlinux] Error 1
---
~Randy
Quoted 3 lines
when
CONFIG_INPUT=nand
#CONFIG_NEW_LEDSis not setCONFIG_LEDS_CLASS=y
Does below patch help?
---
drivers/net/wireless/rt2x00/Kconfig +1 -0
@@ -36,6 +36,7 @@ config RT2X00_LIB_FIRMWARE config RT2X00_LIB_RFKILL boolean depends on RT2X00_LIB + depends on INPUT select RFKILL select INPUT_POLLDEV
--- Original Message ---
Quoted 5 lines
Quoted 3 lines
when
CONFIG_INPUT=nand
#CONFIG_NEW_LEDSis not setCONFIG_LEDS_CLASS=yDoes below patch help?
Nope, sorry, same build errors.
Quoted 14 lines
---
drivers/net/wireless/rt2x00/Kconfig +1
-0@@ -36,6 +36,7 @@ config RT2X00_LIB_FIRMWARE config RT2X00_LIB_RFKILL boolean depends on RT2X00_LIB + depends on INPUT select RFKILL select INPUT_POLLDEV
A message that is not in the archive (sent off-list or not yet received): 32664704.1213206386295.JavaMail.oracle-s5rVz5nKm9nKpDp+h9PlwkEOCMrvLtNR@public.gmane.org
Quoted 8 lines · Randy Dunlap
--- Original Message ---
Quoted 5 lines
Quoted 3 lines
when
CONFIG_INPUT=nand
#CONFIG_NEW_LEDSis not setCONFIG_LEDS_CLASS=yDoes below patch help?
Nope, sorry, same build errors.
Ok this is odd, there is something very strange happening, the relevant options in your config are:
CONFIG_RFKILL=yCONFIG_RFKILL_INPUT=y
# CONFIG_INPUT is not setCONFIG_INPUT_POLLDEV=yCONFIG_RT2X00_LIB_RFKILL=y
Quoted 1 line
From
net/rfkill/Kconfig:
config RFKILL_INPUT
tristate "Input layer to RF switch connector" depends on RFKILL && INPUT
So RFKILL_INPUT shouldn't not be enabled because it has a clear dependency on the CONFIG_INPUT option.
Quoted 1 line
From
drivers/net/wireless/rt2x00/Kconfig
config RT2X00_LIB_RFKILL
boolean
depends on RT2X00_LIB
select RFKILL
select INPUT_POLLDEV
This doesn't mean that the rt2x00 behavior of selecting CONFIG_INPUT_POLLDEV without dependencies on CONFIG_INPUT was correct. But more that there is a secondary bug elsewhere as well, and that is the one which is causing the build failure now.. :S
Anybody with additional ideas? :)
Ivo
A message that is not in the archive (sent off-list or not yet received): 20080611100748.d35829f4.randy.dunlap-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org
Quoted 6 lines · Randy Dunlap
when
CONFIG_INPUT=nand
#CONFIG_NEW_LEDSis not setCONFIG_LEDS_CLASS=y(full config attached)
Quoted 13 lines
vmlinux.o: In function `iwl_rfkill_unregister':
(.text+0x174cdc): undefined reference toinput_unregister_device' vmlinux.o: In functioniwl_rfkill_init':
(.text+0x174d9f): undefined reference toinput_allocate_device' vmlinux.o: In functioniwl_rfkill_init':
(.text+0x174e2d): undefined reference toinput_register_device' vmlinux.o: In functioniwl_rfkill_init':
(.text+0x174e53): undefined reference to `input_free_device'
vmlinux.o: In function `rt2x00rfkill_allocate_polldev':
rt2x00rfkill.c:(.text+0x176dc4): undefined reference toinput_allocate_polled_device' vmlinux.o: In functionrt2x00rfkill_poll':
rt2x00rfkill.c:(.text+0x176e8b): undefined reference toinput_event' rt2x00rfkill.c:(.text+0x176e9f): undefined reference toinput_event'
<snip>
Ick, what a mess...
So what combination of depends and select of INPUT, INPUT_POLLDEV, and RFKILL_INPUT do we need to resolve this?
Signature · 6 lines
John W. Linville [email protected] -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 21 lines · John W. Linville
Quoted 6 lines · Randy Dunlap
when
CONFIG_INPUT=nand
#CONFIG_NEW_LEDSis not setCONFIG_LEDS_CLASS=y(full config attached)
Quoted 13 lines
vmlinux.o: In function `iwl_rfkill_unregister':
(.text+0x174cdc): undefined reference toinput_unregister_device' vmlinux.o: In functioniwl_rfkill_init':
(.text+0x174d9f): undefined reference toinput_allocate_device' vmlinux.o: In functioniwl_rfkill_init':
(.text+0x174e2d): undefined reference toinput_register_device' vmlinux.o: In functioniwl_rfkill_init':
(.text+0x174e53): undefined reference to `input_free_device'
vmlinux.o: In function `rt2x00rfkill_allocate_polldev':
rt2x00rfkill.c:(.text+0x176dc4): undefined reference toinput_allocate_polled_device' vmlinux.o: In functionrt2x00rfkill_poll':
rt2x00rfkill.c:(.text+0x176e8b): undefined reference toinput_event' rt2x00rfkill.c:(.text+0x176e9f): undefined reference toinput_event'
Quoted 6 lines
<snip>
Ick, what a mess...
So what combination of depends and select of INPUT,
INPUT_POLLDEV, andRFKILL_INPUTdo we need to resolve this?
Well RFKILL_INPUT shouldn't be selected by a driver, in fact any driver that selects or depends on RFKILL_INPUT is wrong. But selecting it only makes matters worse since that will bypass the INPUT dependency.
When INPUT_POLLDEV is required I guess it is best to depend on INPUT and select INPUT_POLLDEV.
iwlwifi is selecting RFKILL_INPUT and preferably they should drop the select altogether (not replacing it with a depend), but since I am not sure about the reason for the select
rt2x00 is selecting INPUT_POLLDEV but should depend on INPUT first (as done in the patch in my previous mail).
b43 shouldn't really depend on RFKILL_INPUT but their Kconfig is correct and shouldn't cause the above build failure.
Ivo
Quoted 35 lines · On Wed, 11 Jun 2008 21:03:58 +0200 Ivo van Doorn wrote:
Quoted 21 lines · John W. Linville
Quoted 6 lines · Randy Dunlap
when
CONFIG_INPUT=nand
#CONFIG_NEW_LEDSis not setCONFIG_LEDS_CLASS=y(full config attached)
Quoted 13 lines
vmlinux.o: In function `iwl_rfkill_unregister':
(.text+0x174cdc): undefined reference toinput_unregister_device' vmlinux.o: In functioniwl_rfkill_init':
(.text+0x174d9f): undefined reference toinput_allocate_device' vmlinux.o: In functioniwl_rfkill_init':
(.text+0x174e2d): undefined reference toinput_register_device' vmlinux.o: In functioniwl_rfkill_init':
(.text+0x174e53): undefined reference to `input_free_device'
vmlinux.o: In function `rt2x00rfkill_allocate_polldev':
rt2x00rfkill.c:(.text+0x176dc4): undefined reference toinput_allocate_polled_device' vmlinux.o: In functionrt2x00rfkill_poll':
rt2x00rfkill.c:(.text+0x176e8b): undefined reference toinput_event' rt2x00rfkill.c:(.text+0x176e9f): undefined reference toinput_event'Quoted 6 lines
<snip>
Ick, what a mess...
So what combination of depends and select of INPUT,
INPUT_POLLDEV, andRFKILL_INPUTdo we need to resolve this?Well
RFKILL_INPUTshouldn't be selected by a driver, in fact any driver that selects or depends onRFKILL_INPUTis wrong. But selecting it only makes matters worse since that will bypass the INPUT dependency.
WhenINPUT_POLLDEVis required I guess it is best to depend on INPUT and selectINPUT_POLLDEV.
Quoted 3 lines
iwlwifi is selecting
RFKILL_INPUTand preferably they should drop the select altogether (not replacing it with a depend), but since I am not sure about the reason for the select
Yes, that easily causes a build failure.
Quoted 5 lines
rt2x00 is selecting
INPUT_POLLDEVbut should depend on INPUT first (as done in the patch in my previous mail).b43 shouldn't really depend on
RFKILL_INPUTbut theirKconfigis correct and shouldn't cause the above build failure.
Patch below fixes the RFKILL/INPUT build problems for me. I haven't addresses the leds_* build problems yet.
From: Randy Dunlap <[email protected]>
Config symbols that select RFKILL need to depend on INPUT so that undefined symbols are not used in the build.
This patch fixes the input_* symbols build errors.
(.text+0x174cdc): undefined reference to input_unregister_device' (.text+0x174d9f): undefined reference to input_allocate_device' (.text+0x174e2d): undefined reference to input_register_device' (.text+0x174e53): undefined reference to input_free_device' rt2x00rfkill.c:(.text+0x176dc4): undefined reference to input_allocate_polled_device' rt2x00rfkill.c:(.text+0x176e8b): undefined reference to input_event' rt2x00rfkill.c:(.text+0x176e9f): undefined reference to input_event' (.text+0x176eca): undefined reference to input_unregister_polled_device' (.text+0x176efc): undefined reference to input_free_polled_device' (.text+0x176f37): undefined reference to input_free_polled_device' (.text+0x176fd8): undefined reference to input_register_polled_device' (.text+0x1772c0): undefined reference to led_classdev_resume' (.text+0x1772d4): undefined reference to led_classdev_resume' (.text+0x1772e8): undefined reference to led_classdev_resume' (.text+0x17730a): undefined reference to led_classdev_suspend' (.text+0x17731e): undefined reference to led_classdev_suspend' (.text+0x17732f): undefined reference to led_classdev_suspend' rt2x00leds.c:(.text+0x177348): undefined reference to led_classdev_unregister' rt2x00leds.c:(.text+0x1773c0): undefined reference to led_classdev_register' rfkill-input.c:(.text+0x209e4c): undefined reference to input_close_device' rfkill-input.c:(.text+0x209e53): undefined reference to input_unregister_handle' rfkill-input.c:(.text+0x209ea1): undefined reference to input_register_handle' rfkill-input.c:(.text+0x209eae): undefined reference to input_open_device' rfkill-input.c:(.text+0x209ebb): undefined reference to input_unregister_handle' rfkill-input.c:(.init.text+0x17405): undefined reference to input_register_handler' rfkill-input.c:(.exit.text+0x194f): undefined reference to input_unregister_handler' make[1]: *** [vmlinux] Error 1
--- drivers/net/wireless/rt2x00/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/net/wireless/rt2x00/Kconfig +3 -2
@@ -36,6 +36,7 @@ config RT2X00_LIB_FIRMWARE config RT2X00_LIB_RFKILL boolean depends on RT2X00_LIB + depends on INPUT select RFKILL select INPUT_POLLDEV
@@ -56,7 +57,7 @@ config RT2400PCI config RT2400PCI_RFKILL bool "Ralink rt2400 rfkill support" - depends on RT2400PCI + depends on RT2400PCI && INPUT select RT2X00_LIB_RFKILL ---help--- This adds support for integrated rt2400 hardware that features a
@@ -84,7 +85,7 @@ config RT2500PCI config RT2500PCI_RFKILL bool "Ralink rt2500 rfkill support" - depends on RT2500PCI + depends on RT2500PCI && INPUT select RT2X00_LIB_RFKILL ---help--- This adds support for integrated rt2500 hardware that features a
A message that is not in the archive (sent off-list or not yet received): 20080611123245.4089f47b.randy.dunlap-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org
Ivo van Doorn
Acked-byQuoted 113 lines · Randy Dunlap
Quoted 35 lines · On Wed, 11 Jun 2008 21:03:58 +0200 Ivo van Doorn wrote:
Quoted 21 lines · John W. Linville
Quoted 6 lines · Randy Dunlap
when
CONFIG_INPUT=nand
#CONFIG_NEW_LEDSis not setCONFIG_LEDS_CLASS=y(full config attached)
Quoted 13 lines
vmlinux.o: In function `iwl_rfkill_unregister':
(.text+0x174cdc): undefined reference toinput_unregister_device' vmlinux.o: In functioniwl_rfkill_init':
(.text+0x174d9f): undefined reference toinput_allocate_device' vmlinux.o: In functioniwl_rfkill_init':
(.text+0x174e2d): undefined reference toinput_register_device' vmlinux.o: In functioniwl_rfkill_init':
(.text+0x174e53): undefined reference to `input_free_device'
vmlinux.o: In function `rt2x00rfkill_allocate_polldev':
rt2x00rfkill.c:(.text+0x176dc4): undefined reference toinput_allocate_polled_device' vmlinux.o: In functionrt2x00rfkill_poll':
rt2x00rfkill.c:(.text+0x176e8b): undefined reference toinput_event' rt2x00rfkill.c:(.text+0x176e9f): undefined reference toinput_event'Quoted 6 lines
<snip>
Ick, what a mess...
So what combination of depends and select of INPUT,
INPUT_POLLDEV, andRFKILL_INPUTdo we need to resolve this?Well
RFKILL_INPUTshouldn't be selected by a driver, in fact any driver that selects or depends onRFKILL_INPUTis wrong. But selecting it only makes matters worse since that will bypass the INPUT dependency.
WhenINPUT_POLLDEVis required I guess it is best to depend on INPUT and selectINPUT_POLLDEV.Quoted 3 lines
iwlwifi is selecting
RFKILL_INPUTand preferably they should drop the select altogether (not replacing it with a depend), but since I am not sure about the reason for the selectYes, that easily causes a build failure.
Quoted 5 lines
rt2x00 is selecting
INPUT_POLLDEVbut should depend on INPUT first (as done in the patch in my previous mail).b43 shouldn't really depend on
RFKILL_INPUTbut theirKconfigis correct and shouldn't cause the above build failure.Patch below fixes the RFKILL/INPUT build problems for me. I haven't addresses the leds_* build problems yet.
From: Randy Dunlap <[email protected]>
Config symbols that select RFKILL need to depend on INPUT so that undefined symbols are not used in the build.
This patch fixes the input_* symbols build errors.
(.text+0x174cdc): undefined reference to
input_unregister_device' (.text+0x174d9f): undefined reference toinput_allocate_device' (.text+0x174e2d): undefined reference toinput_register_device' (.text+0x174e53): undefined reference toinput_free_device' rt2x00rfkill.c:(.text+0x176dc4): undefined reference toinput_allocate_polled_device' rt2x00rfkill.c:(.text+0x176e8b): undefined reference toinput_event' rt2x00rfkill.c:(.text+0x176e9f): undefined reference toinput_event' (.text+0x176eca): undefined reference toinput_unregister_polled_device' (.text+0x176efc): undefined reference toinput_free_polled_device' (.text+0x176f37): undefined reference toinput_free_polled_device' (.text+0x176fd8): undefined reference toinput_register_polled_device' (.text+0x1772c0): undefined reference toled_classdev_resume' (.text+0x1772d4): undefined reference toled_classdev_resume' (.text+0x1772e8): undefined reference toled_classdev_resume' (.text+0x17730a): undefined reference toled_classdev_suspend' (.text+0x17731e): undefined reference toled_classdev_suspend' (.text+0x17732f): undefined reference toled_classdev_suspend' rt2x00leds.c:(.text+0x177348): undefined reference toled_classdev_unregister' rt2x00leds.c:(.text+0x1773c0): undefined reference toled_classdev_register' rfkill-input.c:(.text+0x209e4c): undefined reference toinput_close_device' rfkill-input.c:(.text+0x209e53): undefined reference toinput_unregister_handle' rfkill-input.c:(.text+0x209ea1): undefined reference toinput_register_handle' rfkill-input.c:(.text+0x209eae): undefined reference toinput_open_device' rfkill-input.c:(.text+0x209ebb): undefined reference toinput_unregister_handle' rfkill-input.c:(.init.text+0x17405): undefined reference toinput_register_handler' rfkill-input.c:(.exit.text+0x194f): undefined reference toinput_unregister_handler' make[1]: *** [vmlinux] Error 1Signed-off-by Randy Dunlap <[email protected]>--- drivers/net/wireless/rt2x00/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)drivers/net/wireless/rt2x00/Kconfig +2
-1@@ -36,6 +36,7 @@ config RT2X00_LIB_FIRMWARE config RT2X00_LIB_RFKILL boolean depends on RT2X00_LIB + depends on INPUT select RFKILL select INPUT_POLLDEV@@ -56,7 +57,7 @@ config RT2400PCI config RT2400PCI_RFKILL bool "Ralink rt2400 rfkill support" - depends on RT2400PCI + depends on RT2400PCI && INPUT select RT2X00_LIB_RFKILL ---help--- This adds support for integrated rt2400 hardware that features a
drivers/net/wireless/rt2x00/Kconfig config RT2500PCI · line 91
Quoted 8 lines
drivers/net/wireless/rt2x00/Kconfig +1
-1@@ -84,7 +85,7 @@ config RT2500PCI config RT2500PCI_RFKILL bool "Ralink rt2500 rfkill support" - depends on RT2500PCI + depends on RT2500PCI && INPUT select RT2X00_LIB_RFKILL ---help--- This adds support for integrated rt2500 hardware that features a
Could you include the RT61PCI_RFKILL change as well? After that you can add:
Ivo
A message that is not in the archive (sent off-list or not yet received): 200806112159.00779.IvDoorn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
PATCH 1/1 next-20080611 rt2x00: build failure
Quoted 1 line
Could you include the
RT61PCI_RFKILLchange as well?
<quilt refresh needed :( >
Quoted 3 lines
After that you can add:
Acked-by Ivo van Doorn <[email protected]>
Updated patch. Thanks.
---
From: Randy Dunlap <[email protected]>
Config symbols that select RFKILL need to depend on INPUT so that undefined symbols are not used in the build.
This patch fixes the input_* symbols build errors.
(.text+0x174cdc): undefined reference to input_unregister_device' (.text+0x174d9f): undefined reference to input_allocate_device' (.text+0x174e2d): undefined reference to input_register_device' (.text+0x174e53): undefined reference to input_free_device' rt2x00rfkill.c:(.text+0x176dc4): undefined reference to input_allocate_polled_device' rt2x00rfkill.c:(.text+0x176e8b): undefined reference to input_event' rt2x00rfkill.c:(.text+0x176e9f): undefined reference to input_event' (.text+0x176eca): undefined reference to input_unregister_polled_device' (.text+0x176efc): undefined reference to input_free_polled_device' (.text+0x176f37): undefined reference to input_free_polled_device' (.text+0x176fd8): undefined reference to input_register_polled_device' (.text+0x1772c0): undefined reference to led_classdev_resume' (.text+0x1772d4): undefined reference to led_classdev_resume' (.text+0x1772e8): undefined reference to led_classdev_resume' (.text+0x17730a): undefined reference to led_classdev_suspend' (.text+0x17731e): undefined reference to led_classdev_suspend' (.text+0x17732f): undefined reference to led_classdev_suspend' rt2x00leds.c:(.text+0x177348): undefined reference to led_classdev_unregister' rt2x00leds.c:(.text+0x1773c0): undefined reference to led_classdev_register' rfkill-input.c:(.text+0x209e4c): undefined reference to input_close_device' rfkill-input.c:(.text+0x209e53): undefined reference to input_unregister_handle' rfkill-input.c:(.text+0x209ea1): undefined reference to input_register_handle' rfkill-input.c:(.text+0x209eae): undefined reference to input_open_device' rfkill-input.c:(.text+0x209ebb): undefined reference to input_unregister_handle' rfkill-input.c:(.init.text+0x17405): undefined reference to input_register_handler' rfkill-input.c:(.exit.text+0x194f): undefined reference to input_unregister_handler' make[1]: *** [vmlinux] Error 1
--- drivers/net/wireless/rt2x00/Kconfig | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/net/wireless/rt2x00/Kconfig +4 -3
@@ -36,6 +36,7 @@ config RT2X00_LIB_FIRMWARE config RT2X00_LIB_RFKILL boolean depends on RT2X00_LIB + depends on INPUT select RFKILL select INPUT_POLLDEV
@@ -56,7 +57,7 @@ config RT2400PCI config RT2400PCI_RFKILL bool "Ralink rt2400 rfkill support" - depends on RT2400PCI + depends on RT2400PCI && INPUT select RT2X00_LIB_RFKILL ---help--- This adds support for integrated rt2400 hardware that features a
@@ -84,7 +85,7 @@ config RT2500PCI config RT2500PCI_RFKILL bool "Ralink rt2500 rfkill support" - depends on RT2500PCI + depends on RT2500PCI && INPUT select RT2X00_LIB_RFKILL ---help--- This adds support for integrated rt2500 hardware that features a
@@ -114,7 +115,7 @@ config RT61PCI config RT61PCI_RFKILL bool "Ralink rt2501/rt61 rfkill support" - depends on RT61PCI + depends on RT61PCI && INPUT select RT2X00_LIB_RFKILL ---help--- This adds support for integrated rt61 hardware that features a
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 1/1 next-20080611 rt2x00: LEDS build failure
In reply to a message not in the archiveFrom: Randy Dunlap <[email protected]>
Config symbols that select LEDS_CLASS need to depend on NEW_LEDS so that undefined symbols are not used in the build.
The alternative is to select NEW_LEDS, which some drivers do.
This patch fixes the led_* symbols build errors.
(.text+0x174cdc): undefined reference to input_unregister_device' (.text+0x174d9f): undefined reference to input_allocate_device' (.text+0x174e2d): undefined reference to input_register_device' (.text+0x174e53): undefined reference to input_free_device' rt2x00rfkill.c:(.text+0x176dc4): undefined reference to input_allocate_polled_device' rt2x00rfkill.c:(.text+0x176e8b): undefined reference to input_event' rt2x00rfkill.c:(.text+0x176e9f): undefined reference to input_event' (.text+0x176eca): undefined reference to input_unregister_polled_device' (.text+0x176efc): undefined reference to input_free_polled_device' (.text+0x176f37): undefined reference to input_free_polled_device' (.text+0x176fd8): undefined reference to input_register_polled_device' (.text+0x1772c0): undefined reference to led_classdev_resume' (.text+0x1772d4): undefined reference to led_classdev_resume' (.text+0x1772e8): undefined reference to led_classdev_resume' (.text+0x17730a): undefined reference to led_classdev_suspend' (.text+0x17731e): undefined reference to led_classdev_suspend' (.text+0x17732f): undefined reference to led_classdev_suspend' rt2x00leds.c:(.text+0x177348): undefined reference to led_classdev_unregister' rt2x00leds.c:(.text+0x1773c0): undefined reference to led_classdev_register' rfkill-input.c:(.text+0x209e4c): undefined reference to input_close_device' rfkill-input.c:(.text+0x209e53): undefined reference to input_unregister_handle' rfkill-input.c:(.text+0x209ea1): undefined reference to input_register_handle' rfkill-input.c:(.text+0x209eae): undefined reference to input_open_device' rfkill-input.c:(.text+0x209ebb): undefined reference to input_unregister_handle' rfkill-input.c:(.init.text+0x17405): undefined reference to input_register_handler' rfkill-input.c:(.exit.text+0x194f): undefined reference to input_unregister_handler' make[1]: *** [vmlinux] Error 1
--- drivers/net/wireless/rt2x00/Kconfig | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/net/wireless/rt2x00/Kconfig +5 -5
@@ -42,7 +42,7 @@ config RT2X00_LIB_RFKILL config RT2X00_LIB_LEDS boolean - depends on RT2X00_LIB + depends on RT2X00_LIB && NEW_LEDS config RT2400PCI tristate "Ralink rt2400 (PCI/PCMCIA) support"
@@ -66,7 +66,7 @@ config RT2400PCI_RFKILL config RT2400PCI_LEDS bool "Ralink rt2400 leds support" - depends on RT2400PCI + depends on RT2400PCI && NEW_LEDS select LEDS_CLASS select RT2X00_LIB_LEDS ---help---
@@ -94,7 +94,7 @@ config RT2500PCI_RFKILL config RT2500PCI_LEDS bool "Ralink rt2500 leds support" - depends on RT2500PCI + depends on RT2500PCI && NEW_LEDS select LEDS_CLASS select RT2X00_LIB_LEDS ---help---
@@ -124,7 +124,7 @@ config RT61PCI_RFKILL config RT61PCI_LEDS bool "Ralink rt2501/rt61 leds support" - depends on RT61PCI + depends on RT61PCI && NEW_LEDS select LEDS_CLASS select RT2X00_LIB_LEDS ---help---
@@ -162,7 +162,7 @@ config RT73USB config RT73USB_LEDS bool "Ralink rt2501/rt73 leds support" - depends on RT73USB + depends on RT73USB && NEW_LEDS select LEDS_CLASS select RT2X00_LIB_LEDS ---help---
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH] next-20080611 rt2x00: LEDS build failure
Quoted 37 lines · Randy Dunlap
From: Randy Dunlap <[email protected]>
Config symbols that select
LEDS_CLASSneed to depend onNEW_LEDSso that undefined symbols are not used in the build.The alternative is to select
NEW_LEDS, which some drivers do.This patch fixes the led_* symbols build errors.
(.text+0x174cdc): undefined reference to
input_unregister_device' (.text+0x174d9f): undefined reference toinput_allocate_device' (.text+0x174e2d): undefined reference toinput_register_device' (.text+0x174e53): undefined reference toinput_free_device' rt2x00rfkill.c:(.text+0x176dc4): undefined reference toinput_allocate_polled_device' rt2x00rfkill.c:(.text+0x176e8b): undefined reference toinput_event' rt2x00rfkill.c:(.text+0x176e9f): undefined reference toinput_event' (.text+0x176eca): undefined reference toinput_unregister_polled_device' (.text+0x176efc): undefined reference toinput_free_polled_device' (.text+0x176f37): undefined reference toinput_free_polled_device' (.text+0x176fd8): undefined reference toinput_register_polled_device' (.text+0x1772c0): undefined reference toled_classdev_resume' (.text+0x1772d4): undefined reference toled_classdev_resume' (.text+0x1772e8): undefined reference toled_classdev_resume' (.text+0x17730a): undefined reference toled_classdev_suspend' (.text+0x17731e): undefined reference toled_classdev_suspend' (.text+0x17732f): undefined reference toled_classdev_suspend' rt2x00leds.c:(.text+0x177348): undefined reference toled_classdev_unregister' rt2x00leds.c:(.text+0x1773c0): undefined reference toled_classdev_register' rfkill-input.c:(.text+0x209e4c): undefined reference toinput_close_device' rfkill-input.c:(.text+0x209e53): undefined reference toinput_unregister_handle' rfkill-input.c:(.text+0x209ea1): undefined reference toinput_register_handle' rfkill-input.c:(.text+0x209eae): undefined reference toinput_open_device' rfkill-input.c:(.text+0x209ebb): undefined reference toinput_unregister_handle' rfkill-input.c:(.init.text+0x17405): undefined reference toinput_register_handler' rfkill-input.c:(.exit.text+0x194f): undefined reference toinput_unregister_handler' make[1]: *** [vmlinux] Error 1
Quoted 1 line
Signed-off-by Randy Dunlap <[email protected]>
Quoted 52 lines
--- drivers/net/wireless/rt2x00/Kconfig | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)drivers/net/wireless/rt2x00/Kconfig +5
-5@@ -42,7 +42,7 @@ config RT2X00_LIB_RFKILL config RT2X00_LIB_LEDS boolean - depends on RT2X00_LIB + depends on RT2X00_LIB && NEW_LEDS config RT2400PCI tristate "Ralink rt2400 (PCI/PCMCIA) support"@@ -66,7 +66,7 @@ config RT2400PCI_RFKILL config RT2400PCI_LEDS bool "Ralink rt2400 leds support" - depends on RT2400PCI + depends on RT2400PCI && NEW_LEDS select LEDS_CLASS select RT2X00_LIB_LEDS ---help---@@ -94,7 +94,7 @@ config RT2500PCI_RFKILL config RT2500PCI_LEDS bool "Ralink rt2500 leds support" - depends on RT2500PCI + depends on RT2500PCI && NEW_LEDS select LEDS_CLASS select RT2X00_LIB_LEDS ---help---@@ -124,7 +124,7 @@ config RT61PCI_RFKILL config RT61PCI_LEDS bool "Ralink rt2501/rt61 leds support" - depends on RT61PCI + depends on RT61PCI && NEW_LEDS select LEDS_CLASS select RT2X00_LIB_LEDS ---help---@@ -162,7 +162,7 @@ config RT73USB config RT73USB_LEDS bool "Ralink rt2501/rt73 leds support" - depends on RT73USB + depends on RT73USB && NEW_LEDS select LEDS_CLASS select RT2X00_LIB_LEDS ---help---