Content-Type: multipart/mixed; boundary="===============7180070888115534716==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: drivers/pci/controller/pcie-mt7621.c:549:34: warning: unused variable 'mt7621_pcie_ids' Date: Mon, 24 Jan 2022 17:58:44 +0800 Message-ID: <202201241754.igtHzgHv-lkp@intel.com> List-Id: --===============7180070888115534716== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git = master head: dd81e1c7d5fb126e5fbc5c9e334d7b3ec29a16a0 commit: 87c71931633bd15e9cfd51d4a4d9cd685e8cdb55 Merge branch 'pci/driver-c= leanup' date: 11 days ago config: mips-randconfig-r031-20220124 (https://download.01.org/0day-ci/arch= ive/20220124/202201241754.igtHzgHv-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 7b3d30= 728816403d1fd73cc5082e9fb761262bce) reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install mips cross compiling tool for clang build # apt-get install binutils-mips-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.gi= t/commit/?id=3D87c71931633bd15e9cfd51d4a4d9cd685e8cdb55 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/gi= t/torvalds/linux.git git fetch --no-tags linus master git checkout 87c71931633bd15e9cfd51d4a4d9cd685e8cdb55 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Dmips SHELL=3D/bin/bash drivers/pci/controller/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/pci/controller/pcie-mt7621.c:112:20: warning: unused function 'p= cie_rmw' [-Wunused-function] static inline void pcie_rmw(struct mt7621_pcie *pcie, u32 reg, u32 clr, = u32 set) ^ >> drivers/pci/controller/pcie-mt7621.c:549:34: warning: unused variable 'm= t7621_pcie_ids' [-Wunused-const-variable] static const struct of_device_id mt7621_pcie_ids[] =3D { ^ 2 warnings generated. vim +/mt7621_pcie_ids +549 drivers/pci/controller/pcie-mt7621.c 03f152e31f4ae89 drivers/staging/mt7621-pci/pci-mt7621.c John Crispin 2018-= 03-15 548 = 4793895f597d42e drivers/pci/controller/pcie-mt7621.c Bjorn Helgaas 2021-= 12-22 @549 static const struct of_device_id mt7621_pcie_ids[] =3D { 03f152e31f4ae89 drivers/staging/mt7621-pci/pci-mt7621.c John Crispin 2018-= 03-15 550 { .compatible =3D "mediatek,mt7621-pci" }, 03f152e31f4ae89 drivers/staging/mt7621-pci/pci-mt7621.c John Crispin 2018-= 03-15 551 {}, 03f152e31f4ae89 drivers/staging/mt7621-pci/pci-mt7621.c John Crispin 2018-= 03-15 552 }; 4793895f597d42e drivers/pci/controller/pcie-mt7621.c Bjorn Helgaas 2021-= 12-22 553 MODULE_DEVICE_TABLE(of, mt7621_pcie_ids); 03f152e31f4ae89 drivers/staging/mt7621-pci/pci-mt7621.c John Crispin 2018-= 03-15 554 = :::::: The code at line 549 was first introduced by commit :::::: 4793895f597d42eb54a0f54711b61263b6a8dd03 PCI: mt7621: Rename mt7621_= pci_ to mt7621_pcie_ :::::: TO: Bjorn Helgaas :::::: CC: Bjorn Helgaas --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============7180070888115534716==--