[dlemoal-libata:for-next 85/106] drivers/ata/ahci_st.c:233:34: warning: unused variable 'st_ahci_match'
From: kernel test robot
Date: Wed Jan 12 2022 - 10:20:35 EST
Hi Damien,
First bad commit (maybe != root cause):
tree: git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata.git for-next
head: 7914e9624dd7ce17d3d3b1dcd6c3fe5d366b228c
commit: 3e7a673b5674512efdcd9ec5ff154ee697c3f7ef [85/106] ata: ahci_st: add compile test support
config: hexagon-buildonly-randconfig-r005-20220112 (https://download.01.org/0day-ci/archive/20220112/202201122335.B7ADTynl-lkp@xxxxxxxxx/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 244dd2913a43a200f5a6544d424cdc37b771028b)
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
# https://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata.git/commit/?id=3e7a673b5674512efdcd9ec5ff154ee697c3f7ef
git remote add dlemoal-libata git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata.git
git fetch --no-tags dlemoal-libata for-next
git checkout 3e7a673b5674512efdcd9ec5ff154ee697c3f7ef
# 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=hexagon SHELL=/bin/bash drivers/ata/
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/ata/ahci_st.c:233:34: warning: unused variable 'st_ahci_match' [-Wunused-const-variable]
static const struct of_device_id st_ahci_match[] = {
^
1 warning generated.
vim +/st_ahci_match +233 drivers/ata/ahci_st.c
76884cb2f7da52 Lee Jones 2014-02-26 232
09de99db23df55 Kiran Padwal 2014-07-22 @233 static const struct of_device_id st_ahci_match[] = {
76884cb2f7da52 Lee Jones 2014-02-26 234 { .compatible = "st,ahci", },
76884cb2f7da52 Lee Jones 2014-02-26 235 {},
76884cb2f7da52 Lee Jones 2014-02-26 236 };
76884cb2f7da52 Lee Jones 2014-02-26 237 MODULE_DEVICE_TABLE(of, st_ahci_match);
76884cb2f7da52 Lee Jones 2014-02-26 238
:::::: The code at line 233 was first introduced by commit
:::::: 09de99db23df55c7415d110f6c62281dedd77384 ahci: st: Make of_device_id array const
:::::: TO: Kiran Padwal <kiran.padwal21@xxxxxxxxx>
:::::: CC: Tejun Heo <tj@xxxxxxxxxx>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx