Hi Li,

[auto build test WARNING on net/master -- if it's inappropriate base, please 
suggest rules for selecting the more suitable base]

url:    
https://github.com/0day-ci/linux/commits/roy-qing-li-gmail-com/ipconfig-send-Client-identifier-in-DHCP-requests/20151015-105553
config: parisc-defconfig (attached as .config)
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
        # save the attached .config to linux build tree
        make.cross ARCH=parisc 

All warnings (new ones prefixed by >>):

   net/ipv4/ipconfig.c: In function 'ic_proto_name':
>> net/ipv4/ipconfig.c:1584:4: warning: ignoring return value of 'kstrtou8', 
>> declared with attribute warn_unused_result [-Wunused-result]
       kstrtou8(client_id, 0, dhcp_client_identifier);
       ^

vim +/kstrtou8 +1584 net/ipv4/ipconfig.c

  1568                  return 0;
  1569          }
  1570  #ifdef CONFIG_IP_PNP_DHCP
  1571          else if (!strncmp(name, "dhcp", 4)) {
  1572                  char *client_id;
  1573  
  1574                  ic_proto_enabled &= ~IC_RARP;
  1575                  client_id = strstr(name, "dhcp,");
  1576                  if (client_id) {
  1577                          char *v;
  1578  
  1579                          client_id = client_id + 5;
  1580                          v = strchr(client_id, ',');
  1581                          if (!v)
  1582                                  return 1;
  1583                          *v = 0;
> 1584                          kstrtou8(client_id, 0, dhcp_client_identifier);
  1585                          strncpy(dhcp_client_identifier + 1, v + 1, 251);
  1586                          *v = ',';
  1587                  }
  1588                  return 1;
  1589          }
  1590  #endif
  1591  #ifdef CONFIG_IP_PNP_BOOTP
  1592          else if (!strcmp(name, "bootp")) {

---
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