[PATCH] siano: fix Kconfig

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: David Härdeman <david@xxxxxxxxxxx>
---
 drivers/media/common/siano/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/common/siano/Kconfig b/drivers/media/common/siano/Kconfig
index 3cb7823..239b7ba 100644
--- a/drivers/media/common/siano/Kconfig
+++ b/drivers/media/common/siano/Kconfig
@@ -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

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux