Skip to contentSkip to conversation

siano: fix Kconfig

PATCH In review David Härdeman 2 participants 2 messages Nov 7, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 siano: fix Kconfig

make allmodconfig fails on the staging/for_v3.8 branch:

LD init/built-in.o
drivers/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
index 3cb7823..239b7ba 100644
@@ -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
#1 lore raw

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.o
drivers/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
Quoted 8 lines

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).

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
---
 drivers/media/common/siano/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/common/siano/Kconfig +0 -0
index 3cb7823..239b7ba 100644

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