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

[-- Attachment #1: Type: text/plain, Size: 1827 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: arm-at91_dt_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 5.3.1-8) 5.3.1 20160205
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=arm 

All warnings (new ones prefixed by >>):

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

vim +/err_mpls +223 net/ipv4/tunnel4.c

   207	
   208	static int __init tunnel4_init(void)
   209	{
   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	}

---
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: 21348 bytes --]

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

only message in thread, other threads:[~2016-07-09 23:09 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:07 [net-next:master 1099/1116] net/ipv4/tunnel4.c:223:1: warning: label 'err_mpls' 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).