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

Attachment: .config.gz
Description: Binary data

Reply via email to