netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [net-next:master 1099/1116] net/ipv4/tunnel4.c:226:1: warning: label 'err_ipv6' defined but not used
@ 2016-07-09 23:50 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2016-07-09 23:50 UTC (permalink / raw)
  Cc: kbuild-all, netdev, Simon Horman, Dinan Gunawardena

[-- Attachment #1: Type: text/plain, Size: 1800 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head:   927265bc6cd6374c9bafc43408ece4e92311b149
commit: 8afe97e5d4165c9d181d42504af3f96c8427659a [1099/1116] tunnels: support MPLS over IPv4 tunnels
config: m32r-usrv_defconfig (attached as .config)
compiler: m32r-linux-gcc (GCC) 4.9.0
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 8afe97e5d4165c9d181d42504af3f96c8427659a
        # save the attached .config to linux build tree
        make.cross ARCH=m32r 

All warnings (new ones prefixed by >>):

   net/ipv4/tunnel4.c: In function 'tunnel4_init':
>> net/ipv4/tunnel4.c:226:1: warning: label 'err_ipv6' defined but not used [-Wunused-label]
    err_ipv6:
    ^

vim +/err_ipv6 +226 net/ipv4/tunnel4.c

   210		if (inet_add_protocol(&tunnel4_protocol, IPPROTO_IPIP))
   211			goto err_ipip;
   212	#if IS_ENABLED(CONFIG_IPV6)
   213		if (inet_add_protocol(&tunnel64_protocol, IPPROTO_IPV6))
   214			goto err_ipv6;
   215	#endif
   216	#if IS_ENABLED(CONFIG_MPLS)
   217		if (inet_add_protocol(&tunnelmpls4_protocol, IPPROTO_MPLS))
   218			goto err_mpls;
   219	#endif
   220		return 0;
   221	
   222	#if IS_ENABLED(CONFIG_IPV6)
   223	err_mpls:
   224		inet_del_protocol(&tunnel4_protocol, IPPROTO_IPV6);
   225	#endif
 > 226	err_ipv6:
   227		inet_del_protocol(&tunnel4_protocol, IPPROTO_IPIP);
   228	err_ipip:
   229		pr_err("%s: can't add protocol\n", __func__);
   230		return -EAGAIN;
   231	}
   232	
   233	static void __exit tunnel4_fini(void)
   234	{

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 8490 bytes --]

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

only message in thread, other threads:[~2016-07-09 23:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-09 23:50 [net-next:master 1099/1116] net/ipv4/tunnel4.c:226:1: warning: label 'err_ipv6' defined but not used kbuild 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).