[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202204212201.GQb844HH-lkp@intel.com>
Date: Thu, 21 Apr 2022 22:37:06 +0800
From: kernel test robot <lkp@...el.com>
To: Yajun Deng <yajun.deng@...ux.dev>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org
Subject: net/ipv4/arp.c:1412:36: warning: unused variable 'arp_seq_ops'
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@...el.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@...ux-foundation.org>
:::::: CC: David S. Miller <davem@...set.davemloft.net>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists