drivers/hwspinlock/sirf_hwspinlock.c:87:34: warning: unused variable 'sirf_hwpinlock_ids'
From: kernel test robot
Date: Sun Aug 09 2020 - 15:08:21 EST
Hi Baolin,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 06a81c1c7db9bd5de0bd38cd5acc44bb22b99150
commit: ffd0bbfb378ecd56eac22bf932ccdbf89ac7f725 hwspinlock: Allow drivers to be built with COMPILE_TEST
date: 5 months ago
config: x86_64-randconfig-a004-20200810 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 0b90a08f7722980f6074c6eada8022242408cdb4)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout ffd0bbfb378ecd56eac22bf932ccdbf89ac7f725
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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/hwspinlock/sirf_hwspinlock.c:87:34: warning: unused variable 'sirf_hwpinlock_ids' [-Wunused-const-variable]
static const struct of_device_id sirf_hwpinlock_ids[] = {
^
1 warning generated.
vim +/sirf_hwpinlock_ids +87 drivers/hwspinlock/sirf_hwspinlock.c
cc16d664e21ef6 Wei Chen 2015-05-26 86
cc16d664e21ef6 Wei Chen 2015-05-26 @87 static const struct of_device_id sirf_hwpinlock_ids[] = {
cc16d664e21ef6 Wei Chen 2015-05-26 88 { .compatible = "sirf,hwspinlock", },
cc16d664e21ef6 Wei Chen 2015-05-26 89 {},
cc16d664e21ef6 Wei Chen 2015-05-26 90 };
cc16d664e21ef6 Wei Chen 2015-05-26 91 MODULE_DEVICE_TABLE(of, sirf_hwpinlock_ids);
cc16d664e21ef6 Wei Chen 2015-05-26 92
:::::: The code at line 87 was first introduced by commit
:::::: cc16d664e21ef640faaf51e9952384cf90b92d9f hwspinlock: add a CSR atlas7 driver
:::::: TO: Wei Chen <wei.chen@xxxxxxx>
:::::: CC: Ohad Ben-Cohen <ohad@xxxxxxxxxx>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip