lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Sun, 10 Jul 2016 07:07:58 +0800
From:	kbuild test robot <fengguang.wu@...el.com>
To:	unlisted-recipients:; (no To-header on input)
Cc:	kbuild-all@...org, netdev@...r.kernel.org,
	Simon Horman <simon.horman@...ronome.com>,
	Dinan Gunawardena <dinan.gunawardena@...ronome.com>
Subject: [net-next:master 1099/1116] net/ipv4/tunnel4.c:223:1: warning: label
 'err_mpls' defined but not used

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

Download attachment ".config.gz" of type "application/octet-stream" (21348 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ