All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Bjorn Helgaas <helgaas@kernel.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.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	[thread overview]
Message-ID: <202201241754.igtHzgHv-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   dd81e1c7d5fb126e5fbc5c9e334d7b3ec29a16a0
commit: 87c71931633bd15e9cfd51d4a4d9cd685e8cdb55 Merge branch 'pci/driver-cleanup'
date:   11 days ago
config: mips-randconfig-r031-20220124 (https://download.01.org/0day-ci/archive/20220124/202201241754.igtHzgHv-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 7b3d30728816403d1fd73cc5082e9fb761262bce)
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 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.git/commit/?id=87c71931633bd15e9cfd51d4a4d9cd685e8cdb55
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/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=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/pci/controller/

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

All warnings (new ones prefixed by >>):

   drivers/pci/controller/pcie-mt7621.c:112:20: warning: unused function 'pcie_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 'mt7621_pcie_ids' [-Wunused-const-variable]
   static const struct of_device_id mt7621_pcie_ids[] = {
                                    ^
   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[] = {
03f152e31f4ae89 drivers/staging/mt7621-pci/pci-mt7621.c John Crispin  2018-03-15  550  	{ .compatible = "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 <bhelgaas@google.com>
:::::: CC: Bjorn Helgaas <bhelgaas@google.com>

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

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
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	[thread overview]
Message-ID: <202201241754.igtHzgHv-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3142 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   dd81e1c7d5fb126e5fbc5c9e334d7b3ec29a16a0
commit: 87c71931633bd15e9cfd51d4a4d9cd685e8cdb55 Merge branch 'pci/driver-cleanup'
date:   11 days ago
config: mips-randconfig-r031-20220124 (https://download.01.org/0day-ci/archive/20220124/202201241754.igtHzgHv-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 7b3d30728816403d1fd73cc5082e9fb761262bce)
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 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.git/commit/?id=87c71931633bd15e9cfd51d4a4d9cd685e8cdb55
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/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=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/pci/controller/

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

All warnings (new ones prefixed by >>):

   drivers/pci/controller/pcie-mt7621.c:112:20: warning: unused function 'pcie_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 'mt7621_pcie_ids' [-Wunused-const-variable]
   static const struct of_device_id mt7621_pcie_ids[] = {
                                    ^
   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[] = {
03f152e31f4ae89 drivers/staging/mt7621-pci/pci-mt7621.c John Crispin  2018-03-15  550  	{ .compatible = "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 <bhelgaas@google.com>
:::::: CC: Bjorn Helgaas <bhelgaas@google.com>

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

             reply	other threads:[~2022-01-24 10:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-24  9:58 kernel test robot [this message]
2022-01-24  9:58 ` drivers/pci/controller/pcie-mt7621.c:549:34: warning: unused variable 'mt7621_pcie_ids' kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202201241754.igtHzgHv-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=helgaas@kernel.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.