Hi Andrew,

[auto build test ERROR on net/master]

url:    
https://github.com/0day-ci/linux/commits/Andrew-Lunn/net-dsa-Mop-up-remaining-NET_DSA_HWMON-references/20170125-221411
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   net/dsa/dsa.c: In function 'dsa_switch_setup_one':
>> net/dsa/dsa.c:447:15: error: 'struct dsa_switch' has no member named 
>> 'hwmon_name'
      scnprintf(ds->hwmon_name, sizeof(ds->hwmon_name), "%s_dsa%d",
                  ^~
   net/dsa/dsa.c:447:38: error: 'struct dsa_switch' has no member named 
'hwmon_name'
      scnprintf(ds->hwmon_name, sizeof(ds->hwmon_name), "%s_dsa%d",
                                         ^~
>> net/dsa/dsa.c:449:5: error: 'struct dsa_switch' has no member named 
>> 'hwmon_dev'
      ds->hwmon_dev = hwmon_device_register_with_groups(NULL,
        ^~
   net/dsa/dsa.c:450:8: error: 'struct dsa_switch' has no member named 
'hwmon_name'
         ds->hwmon_name, ds, dsa_hwmon_groups);
           ^~
   net/dsa/dsa.c:451:16: error: 'struct dsa_switch' has no member named 
'hwmon_dev'
      if (IS_ERR(ds->hwmon_dev))
                   ^~
   net/dsa/dsa.c:452:6: error: 'struct dsa_switch' has no member named 
'hwmon_dev'
       ds->hwmon_dev = NULL;
         ^~
   net/dsa/dsa.c: In function 'dsa_switch_destroy':
   net/dsa/dsa.c:518:8: error: 'struct dsa_switch' has no member named 
'hwmon_dev'
     if (ds->hwmon_dev)
           ^~
   net/dsa/dsa.c:519:29: error: 'struct dsa_switch' has no member named 
'hwmon_dev'
      hwmon_device_unregister(ds->hwmon_dev);
                                ^~

vim +447 net/dsa/dsa.c

51579c3f Guenter Roeck 2014-10-29  441                  /* Create valid hwmon 
'name' attribute */
51579c3f Guenter Roeck 2014-10-29  442                  for (i = j = 0; i < 
IFNAMSIZ && netname[i]; i++) {
51579c3f Guenter Roeck 2014-10-29  443                          if 
(isalnum(netname[i]))
51579c3f Guenter Roeck 2014-10-29  444                                  
hname[j++] = netname[i];
51579c3f Guenter Roeck 2014-10-29  445                  }
51579c3f Guenter Roeck 2014-10-29  446                  hname[j] = '\0';
51579c3f Guenter Roeck 2014-10-29 @447                  
scnprintf(ds->hwmon_name, sizeof(ds->hwmon_name), "%s_dsa%d",
51579c3f Guenter Roeck 2014-10-29  448                            hname, index);
51579c3f Guenter Roeck 2014-10-29 @449                  ds->hwmon_dev = 
hwmon_device_register_with_groups(NULL,
51579c3f Guenter Roeck 2014-10-29  450                                          
ds->hwmon_name, ds, dsa_hwmon_groups);
51579c3f Guenter Roeck 2014-10-29  451                  if 
(IS_ERR(ds->hwmon_dev))
51579c3f Guenter Roeck 2014-10-29  452                          ds->hwmon_dev = 
NULL;

:::::: The code at line 447 was first introduced by commit
:::::: 51579c3f1a9192b75365576227d40c7619493285 net: dsa: Add support for 
reporting switch chip temperatures

:::::: TO: Guenter Roeck <li...@roeck-us.net>
:::::: CC: David S. Miller <da...@davemloft.net>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip

Reply via email to