* [hch-misc:set_fs-net-tunnel.2 5/9] net/ipv6/sit.c:460:6: warning: variable 'err' set but not used
@ 2020-05-19 2:07 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-05-19 2:07 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 1648 bytes --]
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@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(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 29119 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-05-19 2:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-19 2:07 [hch-misc:set_fs-net-tunnel.2 5/9] net/ipv6/sit.c:460:6: warning: variable 'err' set but not used kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.