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>] [thread-next>] [day] [month] [year] [list]
Date:	Sat, 11 Jun 2016 15:22:48 +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,
	Ben Dooks <ben.dooks@...ethink.co.uk>
Subject: [net:master 4/8] net/ipv4/ipconfig.c:130:15: warning:
 'ic_addrservaddr' defined but not used

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git master
head:   92ca8241533009e4e05a9f3999a75389678af094
commit: 0b392be9a86560dae3af2e7528f226ff465ab549 [4/8] net: ipconfig: avoid warning by making ic_addrservaddr static
config: frv-defconfig (attached as .config)
compiler: frv-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 0b392be9a86560dae3af2e7528f226ff465ab549
        # save the attached .config to linux build tree
        make.cross ARCH=frv 

All warnings (new ones prefixed by >>):

>> net/ipv4/ipconfig.c:130:15: warning: 'ic_addrservaddr' defined but not used [-Wunused-variable]
    static __be32 ic_addrservaddr = NONE; /* IP Address of the IP addresses'server */
                  ^

vim +/ic_addrservaddr +130 net/ipv4/ipconfig.c

   114				| IC_BOOTP
   115	#endif
   116	#ifdef CONFIG_IP_PNP_DHCP
   117				| IC_USE_DHCP
   118	#endif
   119	#ifdef IPCONFIG_RARP
   120				| IC_RARP
   121	#endif
   122				;
   123	
   124	static int ic_host_name_set __initdata;	/* Host name set by us? */
   125	
   126	__be32 ic_myaddr = NONE;		/* My IP address */
   127	static __be32 ic_netmask = NONE;	/* Netmask for local subnet */
   128	__be32 ic_gateway = NONE;	/* Gateway IP address */
   129	
 > 130	static __be32 ic_addrservaddr = NONE;	/* IP Address of the IP addresses'server */
   131	
   132	__be32 ic_servaddr = NONE;	/* Boot server IP address */
   133	
   134	__be32 root_server_addr = NONE;	/* Address of NFS server */
   135	u8 root_server_path[256] = { 0, };	/* Path to mount as root */
   136	
   137	/* vendor class identifier */
   138	static char vendor_class_identifier[253] __initdata;

---
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" (8682 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ