diff mbox series

i2c: Disable I2C_APPLE on PPC when COMPILE_TEST is set

Message ID 20230227035414.1461763-1-bgray@linux.ibm.com
State New
Headers show
Series i2c: Disable I2C_APPLE on PPC when COMPILE_TEST is set | expand

Commit Message

Benjamin Gray Feb. 27, 2023, 3:54 a.m. UTC
The ppc64le_allmodconfig sets I2C_PASEMI=y and leaves COMPILE_TEST to
default to y and I2C_APPLE to default to m, running into a known
incompatible configuration that breaks the build [1].

Disable the I2C_APPLE build during PPC compile tests to prevent this.

[1]: https://lore.kernel.org/all/202112061809.XT99aPrf-lkp@intel.com

Suggested-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
---
 drivers/i2c/busses/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


base-commit: ec0a1b360aec1ba0bdfad3dd69e300b028529c0d
--
2.39.2
diff mbox series

Patch

diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig
index d4975444a32d..3db56e446902 100644
--- a/drivers/i2c/busses/Kconfig
+++ b/drivers/i2c/busses/Kconfig
@@ -896,7 +896,7 @@  config I2C_PASEMI

 config I2C_APPLE
 	tristate "Apple SMBus platform driver"
-	depends on ARCH_APPLE || COMPILE_TEST
+	depends on ARCH_APPLE || (COMPILE_TEST && !PPC)
 	default ARCH_APPLE
 	help
 	  Say Y here if you want to use the I2C controller present on Apple