Skip to contentSkip to conversation

media: platform: cros-ec-cec: fix dependency on MFD_CROS_EC

PATCH In review Arnd Bergmann 3 participants 3 messages Jul 24, 2018 – Aug 3, 2018 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: platform: cros-ec-cec: fix dependency on MFD_CROS_EC

Without the MFD driver, we run into a link error:

drivers/media/platform/cros-ec-cec/cros-ec-cec.o: In function `cros_ec_cec_transmit':
cros-ec-cec.c:(.text+0x474): undefined reference to cros_ec_cmd_xfer_status' drivers/media/platform/cros-ec-cec/cros-ec-cec.o: In function cros_ec_cec_set_log_addr':
cros-ec-cec.c:(.text+0x60b): undefined reference to cros_ec_cmd_xfer_status' drivers/media/platform/cros-ec-cec/cros-ec-cec.o: In function cros_ec_cec_adap_enable':
cros-ec-cec.c:(.text+0x77d): undefined reference to `cros_ec_cmd_xfer_status'

As we can compile-test all the dependency, the extra '| COMPILE_TEST' is not needed to get the build coverage, and we can simply turn MFD_CROS_EC into a hard dependency to make it build in all configurations.

Fixes cd70de2d356e ("media: platform: Add ChromeOS EC CEC driver")
---
 drivers/media/platform/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/platform/Kconfig +1 -1
index 92b182da8e4d..018fcbed82e4 100644
@@ -535,7 +535,7 @@ if CEC_PLATFORM_DRIVERS
 
 config VIDEO_CROS_EC_CEC
 	tristate "ChromeOS EC CEC driver"
-	depends on MFD_CROS_EC || COMPILE_TEST
+	depends on MFD_CROS_EC
 	select CEC_CORE
 	select CEC_NOTIFIER
 	---help---
Signature · 1 line
2.18.0
#1 lore raw

Em Tue, 24 Jul 2018 11:35:59 +0200
Arnd Bergmann <[email protected]> escreveu:

Quoted 1 line

Without the MFD driver, we run into a link error:

Weird... I'm not seeing this driver at the media tree... was it merged via some other tree?

Quoted 23 lines

drivers/media/platform/cros-ec-cec/cros-ec-cec.o: In function `cros_ec_cec_transmit':
cros-ec-cec.c:(.text+0x474): undefined reference to cros_ec_cmd_xfer_status' drivers/media/platform/cros-ec-cec/cros-ec-cec.o: In function cros_ec_cec_set_log_addr':
cros-ec-cec.c:(.text+0x60b): undefined reference to cros_ec_cmd_xfer_status' drivers/media/platform/cros-ec-cec/cros-ec-cec.o: In function cros_ec_cec_adap_enable':
cros-ec-cec.c:(.text+0x77d): undefined reference to `cros_ec_cmd_xfer_status'

As we can compile-test all the dependency, the extra '| COMPILE_TEST' is not needed to get the build coverage, and we can simply turn MFD_CROS_EC into a hard dependency to make it build in all configurations.

Fixes cd70de2d356e ("media: platform: Add ChromeOS EC CEC driver")
---
 drivers/media/platform/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/platform/Kconfig +0 -0
index 92b182da8e4d..018fcbed82e4 100644

drivers/media/platform/Kconfig if CEC_PLATFORM_DRIVERS · line 541

Quoted 8 lines
drivers/media/platform/Kconfig +1 -1
@@ -535,7 +535,7 @@ if CEC_PLATFORM_DRIVERS
 
 config VIDEO_CROS_EC_CEC
 	tristate "ChromeOS EC CEC driver"
-	depends on MFD_CROS_EC || COMPILE_TEST
+	depends on MFD_CROS_EC
 	select CEC_CORE
 	select CEC_NOTIFIER
 	---help---

Thanks,
Mauro

#2 lore raw
Quoted 7 lines · Mauro Carvalho Chehab

Em Tue, 24 Jul 2018 11:35:59 +0200
Arnd Bergmann <[email protected]> escreveu:

Quoted 1 line

Without the MFD driver, we run into a link error:

Weird... I'm not seeing this driver at the media tree... was it merged via some other tree?

Yes, it's going via the mfd subsystem. This driver touched on the mfd, drm and media subsystems, in the end it was decided to let the mfd subsystem take this since it had the most impact on that subsystem.

Regards,

Hans

Quoted 38 lines
Quoted 24 lines

drivers/media/platform/cros-ec-cec/cros-ec-cec.o: In function `cros_ec_cec_transmit':
cros-ec-cec.c:(.text+0x474): undefined reference to cros_ec_cmd_xfer_status' drivers/media/platform/cros-ec-cec/cros-ec-cec.o: In function cros_ec_cec_set_log_addr':
cros-ec-cec.c:(.text+0x60b): undefined reference to cros_ec_cmd_xfer_status' drivers/media/platform/cros-ec-cec/cros-ec-cec.o: In function cros_ec_cec_adap_enable':
cros-ec-cec.c:(.text+0x77d): undefined reference to `cros_ec_cmd_xfer_status'

As we can compile-test all the dependency, the extra '| COMPILE_TEST' is not needed to get the build coverage, and we can simply turn MFD_CROS_EC into a hard dependency to make it build in all configurations.

Fixes cd70de2d356e ("media: platform: Add ChromeOS EC CEC driver")
---
 drivers/media/platform/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/platform/Kconfig +0 -0
index 92b182da8e4d..018fcbed82e4 100644

drivers/media/platform/Kconfig if CEC_PLATFORM_DRIVERS · line 541

Quoted 8 lines
drivers/media/platform/Kconfig +1 -1
@@ -535,7 +535,7 @@ if CEC_PLATFORM_DRIVERS
 
 config VIDEO_CROS_EC_CEC
 	tristate "ChromeOS EC CEC driver"
-	depends on MFD_CROS_EC || COMPILE_TEST
+	depends on MFD_CROS_EC
 	select CEC_CORE
 	select CEC_NOTIFIER
 	---help---

Thanks,
Mauro