tree:
git://git.infradead.org/users/hch/misc.git set_fs-net-tunnel.2
head: a0235d8add44d23022a18073e3ef61f10c2ec3bd
commit: a6e4b2bdb18cbd8dc7c3c5136fefbd807f47dae5 [5/9] sit: refactor ipip6_tunnel_ioctl
config: x86_64-defconfig (attached as .config)
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/ipv6/sit.c: In function 'ipip6_tunnel_prl_ctl':
> net/ipv6/sit.c:460:6: warning: variable 'err' set but not
used [-Wunused-but-set-variable]
int err;
^~~
vim +/err +460 net/ipv6/sit.c
454
455 static int ipip6_tunnel_prl_ctl(struct net_device *dev, struct ifreq *ifr,
456 int cmd)
457 {
458 struct ip_tunnel *t = netdev_priv(dev);
459 struct ip_tunnel_prl prl;
460 int err;
461
462 if (!ns_capable(t->net->user_ns, CAP_NET_ADMIN))
463 return -EPERM;
464 if (dev == dev_to_sit_net(dev)->fb_tunnel_dev)
465 return -EINVAL;
466
467 if (copy_from_user(&prl, ifr->ifr_ifru.ifru_data, sizeof(prl)))
468 return -EFAULT;
469
470 switch (cmd) {
471 case SIOCDELPRL:
472 err = ipip6_tunnel_del_prl(t, &prl);
473 break;
474 case SIOCADDPRL:
475 case SIOCCHGPRL:
476 err = ipip6_tunnel_add_prl(t, &prl, cmd == SIOCCHGPRL);
477 break;
478 }
479 dst_cache_reset(&t->dst_cache);
480 netdev_state_change(dev);
481 return 0;
482 }
483
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org