tree:
https://github.com/dsahern/linux nexthops/active-backup
head: d812063276459dee9973ef8f4789ca63869ba9ae
commit: 0afee2a54f8fb316a318dd295b21f6608b3154d7 [3/6] nexthops: Refactor
nexthop_select_path
config: mips-randconfig-r025-20200519 (attached as .config)
compiler: mipsel-linux-gcc (GCC) 9.3.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 0afee2a54f8fb316a318dd295b21f6608b3154d7
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
net/ipv4/nexthop.c: In function 'good_nh':
> net/ipv4/nexthop.c:487:7: warning: variable 'rc' set but
not used [-Wunused-but-set-variable]
487 | bool rc = false;
| ^~
vim +/rc +487 net/ipv4/nexthop.c
480
481 /* nexthops always check if it is good and does
482 * not rely on a sysctl for this behavior
483 */
484 static bool good_nh(struct nexthop *nh)
485 {
486 struct nh_info *nhi;
487 bool rc = false;
488
489 nhi = rcu_dereference(nh->nh_info);
490 switch (nhi->family) {
491 case AF_INET:
492 if (ipv4_good_nh(&nhi->fib_nh))
493 rc = true;
494 break;
495 case AF_INET6:
496 if (ipv6_good_nh(&nhi->fib6_nh))
497 rc = true;
498 break;
499 }
500
501 return true;
502 }
503
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org