drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c:463:32: warning: unused variable 'aq_pm_ops'

From: kernel test robot
Date: Fri Nov 05 2021 - 17:32:21 EST


Hi Léo,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: fe91c4725aeed35023ba4f7a1e1adfebb6878c23
commit: 9b22fece786ed641909988da4810bfa8e5d2e592 atlantic: remove architecture depends
date: 10 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@xxxxxxxxx>

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

8aaa112a57c1d72 Nikita Danilov 2019-11-07 462
0ee0bbb018938ad zhengbin 2019-11-12 @463 static const struct dev_pm_ops aq_pm_ops = {
8aaa112a57c1d72 Nikita Danilov 2019-11-07 464 .suspend = aq_pm_suspend_poweroff,
8aaa112a57c1d72 Nikita Danilov 2019-11-07 465 .poweroff = aq_pm_suspend_poweroff,
8aaa112a57c1d72 Nikita Danilov 2019-11-07 466 .freeze = aq_pm_freeze,
8aaa112a57c1d72 Nikita Danilov 2019-11-07 467 .resume = aq_pm_resume_restore,
8aaa112a57c1d72 Nikita Danilov 2019-11-07 468 .restore = aq_pm_resume_restore,
8aaa112a57c1d72 Nikita Danilov 2019-11-07 469 .thaw = aq_pm_thaw,
8aaa112a57c1d72 Nikita Danilov 2019-11-07 470 };
8aaa112a57c1d72 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@xxxxxxxxxx>
:::::: CC: David S. Miller <davem@xxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip