Re: [PATCH] i2c: mlxbf: Fix build error with CONFIG_ACPI disabled

From: kernel test robot
Date: Mon Nov 02 2020 - 11:58:24 EST


Hi Liu,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on wsa/i2c/for-next]
[also build test WARNING on v5.10-rc2 next-20201102]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url: https://github.com/0day-ci/linux/commits/Liu-Shixin/i2c-mlxbf-Fix-build-error-with-CONFIG_ACPI-disabled/20201102-194848
base: https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/for-next
config: arm64-randconfig-r002-20201102 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project cc91554ebb66e8c9a4b8c67ca2f1343eaac10cf6)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/0day-ci/linux/commit/296e051e7e4a229ffefca237fd399a08c9ace3c4
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Liu-Shixin/i2c-mlxbf-Fix-build-error-with-CONFIG_ACPI-disabled/20201102-194848
git checkout 296e051e7e4a229ffefca237fd399a08c9ace3c4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> drivers/i2c/busses/i2c-mlxbf.c:2267:36: warning: unused variable 'mlxbf_i2c_acpi_ids' [-Wunused-const-variable]
static const struct acpi_device_id mlxbf_i2c_acpi_ids[] = {
^
1 warning generated.

vim +/mlxbf_i2c_acpi_ids +2267 drivers/i2c/busses/i2c-mlxbf.c

b5b5b32081cd206 Khalil Blaiech 2020-09-22 2266
b5b5b32081cd206 Khalil Blaiech 2020-09-22 @2267 static const struct acpi_device_id mlxbf_i2c_acpi_ids[] = {
b5b5b32081cd206 Khalil Blaiech 2020-09-22 2268 { "MLNXBF03", (kernel_ulong_t)&mlxbf_i2c_chip[MLXBF_I2C_CHIP_TYPE_1] },
b5b5b32081cd206 Khalil Blaiech 2020-09-22 2269 { "MLNXBF23", (kernel_ulong_t)&mlxbf_i2c_chip[MLXBF_I2C_CHIP_TYPE_2] },
b5b5b32081cd206 Khalil Blaiech 2020-09-22 2270 {},
b5b5b32081cd206 Khalil Blaiech 2020-09-22 2271 };
b5b5b32081cd206 Khalil Blaiech 2020-09-22 2272

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip