Messages in this thread | | | Date | Wed, 23 Feb 2022 22:00:16 +0800 | From | kernel test robot <> | Subject | [lee-mfd:for-mfd-next 21/25] drivers/mfd/sprd-sc27xx-spi.c:255:35: error: redefinition of 'sprd_pmic_spi_ids' |
| |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git for-mfd-next head: 557bf686f1c6f8825ae44db732d42a60ad3b1437 commit: 6fc90b92e9c7ef3488e3ff7b6fa71f51a5272019 [21/25] mfd: sprd: Add SPI device ID table config: riscv-randconfig-r042-20220221 (https://download.01.org/0day-ci/archive/20220223/202202232155.xqGC3omU-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e) 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 riscv cross compiling tool for clang build # apt-get install binutils-riscv64-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git/commit/?id=6fc90b92e9c7ef3488e3ff7b6fa71f51a5272019 git remote add lee-mfd https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git git fetch --no-tags lee-mfd for-mfd-next git checkout 6fc90b92e9c7ef3488e3ff7b6fa71f51a5272019 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/mfd/
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/mfd/sprd-sc27xx-spi.c:255:35: error: redefinition of 'sprd_pmic_spi_ids' static const struct spi_device_id sprd_pmic_spi_ids[] = { ^ drivers/mfd/sprd-sc27xx-spi.c:242:35: note: previous definition is here static const struct spi_device_id sprd_pmic_spi_ids[] = { ^ 1 error generated.
vim +/sprd_pmic_spi_ids +255 drivers/mfd/sprd-sc27xx-spi.c
25ca4ae43466a4 Baolin Wang 2017-11-01 254 c5c7f067710705 Mark Brown 2021-09-24 @255 static const struct spi_device_id sprd_pmic_spi_ids[] = { c5c7f067710705 Mark Brown 2021-09-24 256 { .name = "sc2731", .driver_data = (unsigned long)&sc2731_data }, c5c7f067710705 Mark Brown 2021-09-24 257 {}, c5c7f067710705 Mark Brown 2021-09-24 258 }; c5c7f067710705 Mark Brown 2021-09-24 259 MODULE_DEVICE_TABLE(spi, sprd_pmic_spi_ids); c5c7f067710705 Mark Brown 2021-09-24 260
:::::: The code at line 255 was first introduced by commit :::::: c5c7f0677107052060037583b9c8c15d818afb04 mfd: sprd: Add SPI device ID table
:::::: TO: Mark Brown <broonie@kernel.org> :::::: CC: Lee Jones <lee.jones@linaro.org>
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
| |