]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
i2c: zx2967: drop COMPILE_TEST dependency
authorShawn Guo <shawn.guo@linaro.org>
Sat, 24 Jun 2017 14:25:26 +0000 (22:25 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 27 Jun 2017 21:21:01 +0000 (23:21 +0200)
0-DAY kernel test reports the following build issue on IA64 architecture
with allmodconfig.

   drivers/i2c/busses/i2c-zx2967.c: In function 'zx2967_i2c_writesb':
>> drivers/i2c/busses/i2c-zx2967.c:87:2: error: implicit declaration of function 'writesb' [-Werror=implicit-function-declaration]
     writesb(i2c->reg_base + reg, data, len);
     ^~~~~~~
   drivers/i2c/busses/i2c-zx2967.c: In function 'zx2967_i2c_readsb':
>> drivers/i2c/busses/i2c-zx2967.c:93:2: error: implicit declaration of function 'readsb' [-Werror=implicit-function-declaration]
     readsb(i2c->reg_base + reg, data, len);
     ^~~~~~
   cc1: some warnings being treated as errors

It's caused by that writesb/readsb are unavailable on IA64 architecture.
Let's drop COMPILE_TEST dependency to avoid the build issue.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/Kconfig

index 5134b3cde14e26145c485d3cc78047c7b3fbb7ac..c01cf3508d1c22176a7ead56fa8418cfa2584f51 100644 (file)
@@ -1272,7 +1272,7 @@ config I2C_OPAL
 
 config I2C_ZX2967
        tristate "ZTE ZX2967 I2C support"
-       depends on ARCH_ZX || COMPILE_TEST
+       depends on ARCH_ZX
        default y
        help
          Selecting this option will add ZX2967 I2C driver.