linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c:463:32: warning: unused variable 'aq_pm_ops'
@ 2021-11-05 21:31 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-11-05 21:31 UTC (permalink / raw)
  To: Léo Le Bouter; +Cc: llvm, kbuild-all, linux-kernel

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

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@intel.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

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@huawei.com>
:::::: CC: David S. Miller <davem@davemloft.net>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 37946 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c:463:32: warning: unused variable 'aq_pm_ops'
@ 2021-09-28  6:00 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-09-28  6:00 UTC (permalink / raw)
  To: Léo Le Bouter; +Cc: llvm, kbuild-all, linux-kernel

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

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@intel.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@huawei.com>
:::::: CC: David S. Miller <davem@davemloft.net>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 37936 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-05 21:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-05 21:31 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c:463:32: warning: unused variable 'aq_pm_ops' kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2021-09-28  6:00 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).