siano: fix Kconfig
Subsystems (2)
PATCH 1/1 siano: fix Kconfig
make allmodconfig fails on the staging/for_v3.8 branch:
LD init/built-in.odrivers/built-in.o: In function `sms_ir_event':/home/david/checkouts/linux/drivers/media/common/siano/smsir.c:48: undefined reference to ir_raw_event_store' /home/david/checkouts/linux/drivers/media/common/siano/smsir.c:50: undefined reference to ir_raw_event_handle' drivers/built-in.o: In function `sms_ir_init':/home/david/checkouts/linux/drivers/media/common/siano/smsir.c:56: undefined reference to smscore_get_board_id' /home/david/checkouts/linux/drivers/media/common/siano/smsir.c:60: undefined reference to rc_allocate_device' /home/david/checkouts/linux/drivers/media/common/siano/smsir.c:72: undefined reference to sms_get_board' /home/david/checkouts/linux/drivers/media/common/siano/smsir.c:92: undefined reference to sms_get_board' /home/david/checkouts/linux/drivers/media/common/siano/smsir.c:97: undefined reference to rc_register_device' /home/david/checkouts/linux/drivers/media/common/siano/smsir.c:100: undefined reference to rc_free_device' drivers/built-in.o: In function `sms_ir_exit':/home/david/checkouts/linux/drivers/media/common/siano/smsir.c:111: undefined reference to `rc_unregister_device'
make: *** [vmlinux] Error 1
from drivers/media/common/siano/Kconfig:
config SMS_SIANO_RC
bool "Enable Remote Controller support for Siano devices"
from drivers/media/common/siano/Makefile:
obj-$(CONFIG_SMS_SIANO_RC) += smsir.o
Note the "bool" option in the Kconfig which results in these .config options:
CONFIG_SMS_SIANO_MDTV=m
CONFIG_SMS_SIANO_RC=y
CONFIG_RC_CORE=m
So the smsir.ko module gets built in while rc-core is a standalone module. Fix by making smsir a tristate as well. (I hope that's the correct fix, I'm no Kconfig expert).
--- drivers/media/common/siano/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/common/siano/Kconfig +1 -1
@@ -9,7 +9,7 @@ config SMS_SIANO_MDTV default y config SMS_SIANO_RC - bool "Enable Remote Controller support for Siano devices" + tristate "Enable Remote Controller support for Siano devices" depends on SMS_SIANO_MDTV && RC_CORE depends on SMS_USB_DRV || SMS_SDIO_DRV depends on MEDIA_COMMON_OPTIONS
Em Wed, 07 Nov 2012 01:10:18 +0100
David Härdeman <[email protected]> escreveu:
Quoted 24 lines
make allmodconfig fails on the staging/for_v3.8 branch:
LD
init/built-in.odrivers/built-in.o: In function `sms_ir_event':/home/david/checkouts/linux/drivers/media/common/siano/smsir.c:48: undefined reference toir_raw_event_store' /home/david/checkouts/linux/drivers/media/common/siano/smsir.c:50: undefined reference toir_raw_event_handle'drivers/built-in.o: In function `sms_ir_init':/home/david/checkouts/linux/drivers/media/common/siano/smsir.c:56: undefined reference tosmscore_get_board_id' /home/david/checkouts/linux/drivers/media/common/siano/smsir.c:60: undefined reference torc_allocate_device'/home/david/checkouts/linux/drivers/media/common/siano/smsir.c:72: undefined reference tosms_get_board' /home/david/checkouts/linux/drivers/media/common/siano/smsir.c:92: undefined reference tosms_get_board'/home/david/checkouts/linux/drivers/media/common/siano/smsir.c:97: undefined reference torc_register_device' /home/david/checkouts/linux/drivers/media/common/siano/smsir.c:100: undefined reference torc_free_device'drivers/built-in.o: In function `sms_ir_exit':/home/david/checkouts/linux/drivers/media/common/siano/smsir.c:111: undefined reference to `rc_unregister_device'
make: *** [vmlinux] Error 1from
drivers/media/common/siano/Kconfig:
configSMS_SIANO_RC
bool "Enable Remote Controller support for Siano devices"from
drivers/media/common/siano/Makefile:obj-$(CONFIG_SMS_SIANO_RC) += smsir.o
Quoted 8 lines
Note the "bool" option in the
Kconfigwhich results in these .config options:
CONFIG_SMS_SIANO_MDTV=m
CONFIG_SMS_SIANO_RC=y
CONFIG_RC_CORE=mSo the smsir.ko module gets built in while rc-core is a standalone module. Fix by making smsir a tristate as well. (I hope that's the correct fix, I'm no
Kconfigexpert).
I suspect that this won't cover all possibilities. It seems that this would still be a valid option:
CONFIG_SMS_SIANO_MDTV=y
CONFIG_SMS_SIANO_RC=m
CONFIG_RC_CORE=m
But I don't think it would work.
Quoted 12 lines
Signed-off-by David Härdeman <[email protected]>--- drivers/media/common/siano/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/media/common/siano/Kconfig +0
-0
drivers/media/common/siano/Kconfig config SMS_SIANO_MDTV · line 15
Quoted 8 lines
drivers/media/common/siano/Kconfig +1
-1@@ -9,7 +9,7 @@ config SMS_SIANO_MDTV default y config SMS_SIANO_RC - bool "Enable Remote Controller support for Siano devices" + tristate "Enable Remote Controller support for Siano devices" depends on SMS_SIANO_MDTV && RC_CORE depends on SMS_USB_DRV || SMS_SDIO_DRV depends on MEDIA_COMMON_OPTIONS
Cheers,
Mauro