llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* net/ipv4/arp.c:1412:36: warning: unused variable 'arp_seq_ops'
@ 2022-04-21 14:37 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-04-21 14:37 UTC (permalink / raw)
  To: Yajun Deng; +Cc: llvm, kbuild-all, linux-kernel

Hi Yajun,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   b253435746d9a4a701b5f09211b9c14d3370d0da
commit: e968b1b3e9b86c4751faea019a5d340fee9e9142 arp: Remove #ifdef CONFIG_PROC_FS
date:   5 months ago
config: hexagon-randconfig-r045-20220420 (https://download.01.org/0day-ci/archive/20220421/202204212201.GQb844HH-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project bac6cd5bf85669e3376610cfc4c4f9ca015e7b9b)
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=e968b1b3e9b86c4751faea019a5d340fee9e9142
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout e968b1b3e9b86c4751faea019a5d340fee9e9142
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash net/ipv4/

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 >>):

>> net/ipv4/arp.c:1412:36: warning: unused variable 'arp_seq_ops' [-Wunused-const-variable]
   static const struct seq_operations arp_seq_ops = {
                                      ^
   1 warning generated.


vim +/arp_seq_ops +1412 net/ipv4/arp.c

^1da177e4c3f41 Linus Torvalds    2005-04-16  1411  
f690808e17925f Stephen Hemminger 2007-03-12 @1412  static const struct seq_operations arp_seq_ops = {
^1da177e4c3f41 Linus Torvalds    2005-04-16  1413  	.start	= arp_seq_start,
^1da177e4c3f41 Linus Torvalds    2005-04-16  1414  	.next	= neigh_seq_next,
^1da177e4c3f41 Linus Torvalds    2005-04-16  1415  	.stop	= neigh_seq_stop,
^1da177e4c3f41 Linus Torvalds    2005-04-16  1416  	.show	= arp_seq_show,
^1da177e4c3f41 Linus Torvalds    2005-04-16  1417  };
^1da177e4c3f41 Linus Torvalds    2005-04-16  1418  

:::::: The code at line 1412 was first introduced by commit
:::::: f690808e17925fc45217eb22e8670902ecee5c1b [NET]: make seq_operations const

:::::: TO: Stephen Hemminger <shemminger@linux-foundation.org>
:::::: CC: David S. Miller <davem@sunset.davemloft.net>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-21 14:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-21 14:37 net/ipv4/arp.c:1412:36: warning: unused variable 'arp_seq_ops' 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).