Skip to contentSkip to conversation

i2c: s3c24xx: allow compile-testing

PATCH In review Arnd Bergmann 2 participants 2 messages Jan 7, 2020 – Jan 8, 2020 I2C subsystem host drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i2c: s3c24xx: allow compile-testing

The PHY_EXYNOS5250_SATA driver can now be selected on any platform for compile testing, but this results in a Kconfig warning:

WARNING: unmet direct dependencies detected for I2C_S3C2410
Depends on [n]: I2C [=y] && HAS_IOMEM [=y] && HAVE_S3C2410_I2C [=n]
Selected by [y]:
- PHY_EXYNOS5250_SATA [=y] && (SOC_EXYNOS5250 || COMPILE_TEST [=y]) && HAS_IOMEM [=y] && OF [=y]

Allow the I2C driver to be compile-tested as well.

Fixes 1544133d48c3 ("phy: Enable compile testing for some of drivers")
---
 drivers/i2c/busses/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/busses/Kconfig +1 -1
index 6a0aa76859f3..ac453c16483d 100644
@@ -933,7 +933,7 @@ config HAVE_S3C2410_I2C
 
 config I2C_S3C2410
 	tristate "S3C2410 I2C Driver"
-	depends on HAVE_S3C2410_I2C
+	depends on HAVE_S3C2410_I2C || COMPILE_TEST
 	help
 	  Say Y here to include support for I2C controller in the
 	  Samsung SoCs.
Signature · 1 line
2.20.0
#1 lore raw
Quoted 10 lines · Arnd Bergmann

The PHY_EXYNOS5250_SATA driver can now be selected on any platform for compile testing, but this results in a Kconfig warning:

WARNING: unmet direct dependencies detected for I2C_S3C2410
Depends on [n]: I2C [=y] && HAS_IOMEM [=y] && HAVE_S3C2410_I2C [=n]
Selected by [y]:
- PHY_EXYNOS5250_SATA [=y] && (SOC_EXYNOS5250 || COMPILE_TEST [=y]) && HAS_IOMEM [=y] && OF [=y]

Quoted 4 lines

Allow the I2C driver to be compile-tested as well.

Fixes 1544133d48c3 ("phy: Enable compile testing for some of drivers")

Hi,

I already posted this with my first patchset of compile test addons:
v2: https://lore.kernel.org/lkml/[email protected]/
v1: https://lore.kernel.org/lkml/[email protected]/

Best regards,
Krzysztof