[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202109281340.y6D50f6Z-lkp@intel.com>
Date: Tue, 28 Sep 2021 14:00:32 +0800
From: kernel test robot <lkp@...el.com>
To: Léo Le Bouter <lle-bout@...lys.net>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org
Subject: drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c:463:32:
warning: unused variable 'aq_pm_ops'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 92477dd1faa650e50bd3bb35a6c0b8d09198cc35
commit: 9b22fece786ed641909988da4810bfa8e5d2e592 atlantic: remove architecture depends
date: 9 months ago
config: i386-randconfig-a006-20210928 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project dc6e8dfdfe7efecfda318d43a06fae18b40eb498)
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/torvalds/linux.git/commit/?id=9b22fece786ed641909988da4810bfa8e5d2e592
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 9b22fece786ed641909988da4810bfa8e5d2e592
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c:463:32: warning: unused variable 'aq_pm_ops' [-Wunused-const-variable]
static const struct dev_pm_ops aq_pm_ops = {
^
1 warning generated.
vim +/aq_pm_ops +463 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c
8aaa112a57c1d725 Nikita Danilov 2019-11-07 462
0ee0bbb018938add zhengbin 2019-11-12 @463 static const struct dev_pm_ops aq_pm_ops = {
8aaa112a57c1d725 Nikita Danilov 2019-11-07 464 .suspend = aq_pm_suspend_poweroff,
8aaa112a57c1d725 Nikita Danilov 2019-11-07 465 .poweroff = aq_pm_suspend_poweroff,
8aaa112a57c1d725 Nikita Danilov 2019-11-07 466 .freeze = aq_pm_freeze,
8aaa112a57c1d725 Nikita Danilov 2019-11-07 467 .resume = aq_pm_resume_restore,
8aaa112a57c1d725 Nikita Danilov 2019-11-07 468 .restore = aq_pm_resume_restore,
8aaa112a57c1d725 Nikita Danilov 2019-11-07 469 .thaw = aq_pm_thaw,
8aaa112a57c1d725 Nikita Danilov 2019-11-07 470 };
8aaa112a57c1d725 Nikita Danilov 2019-11-07 471
:::::: The code at line 463 was first introduced by commit
:::::: 0ee0bbb018938addf87b54d447cc5633d2e53490 net: atlantic: make symbol 'aq_pm_ops' static
:::::: TO: zhengbin <zhengbin13@...wei.com>
:::::: CC: David S. Miller <davem@...emloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (37936 bytes)
Powered by blists - more mailing lists