[soc-thermal:sysfs_locking 38/80] drivers/thermal/thermal_sysfs.c:596:12: error: static declaration of 'thermal_zone_create_device_groups' follows non-static declaration

From: kbuild test robot <hidden>
Date: 2016-09-06 03:02:56

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal.git sysfs_locking
head:   9c698d1021a46984fe6b3316e80be8aa433a7958
commit: d66343dc43af34b6fd83e2bff78fcffc124bee80 [38/80] thermal: core: move thermal_zone sysfs to thermal_sysfs.c
config: i386-randconfig-s0-201636 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        git checkout d66343dc43af34b6fd83e2bff78fcffc124bee80
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):
quoted
drivers/thermal/thermal_sysfs.c:596:12: error: static declaration of 'thermal_zone_create_device_groups' follows non-static declaration
    static int thermal_zone_create_device_groups(struct thermal_zone_device *tz,
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/thermal/thermal_sysfs.c:24:0:
   drivers/thermal/thermal_core.h:70:5: note: previous declaration of 'thermal_zone_create_device_groups' was here
    int thermal_zone_create_device_groups(struct thermal_zone_device *, int);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/thermal/thermal_sysfs.c:596:12: warning: 'thermal_zone_create_device_groups' defined but not used [-Wunused-function]
    static int thermal_zone_create_device_groups(struct thermal_zone_device *tz,
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/thermal/thermal_sysfs.c:19:0:
   include/linux/device.h:575:26: warning: 'dev_attr_emul_temp' defined but not used [-Wunused-variable]
     struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)
                             ^
   drivers/thermal/thermal_sysfs.c:398:8: note: in expansion of macro 'DEVICE_ATTR'
    static DEVICE_ATTR(emul_temp, S_IWUSR, NULL, emul_temp_store);
           ^~~~~~~~~~~

vim +/thermal_zone_create_device_groups +596 drivers/thermal/thermal_sysfs.c

   590	
   591		tz->trips_attribute_group.attrs = attrs;
   592	
   593		return 0;
   594	}
   595	
 > 596	static int thermal_zone_create_device_groups(struct thermal_zone_device *tz,
   597						     int mask)
   598	{
   599		const struct attribute_group **groups;

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

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help