[soc-thermal:for-kernelci 20/79] include/linux/device.h:575:26: warning: 'dev_attr_emul_temp' defined but not used

From: kbuild test robot <hidden>
Date: 2016-10-10 16:13:20

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal.git for-kernelci
head:   6eb525fbac3341918ec0e81f2e2c70cedcd26059
commit: 0c3b19545334c2e2e1ca2303cf1cb1202f1d9fe9 [20/79] thermal: core: move emul_temp creation to tz->device.groups
config: x86_64-randconfig-x014-201641 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout 0c3b19545334c2e2e1ca2303cf1cb1202f1d9fe9
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   In file included from drivers/thermal/thermal_core.c:29:0:
quoted
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_core.c:1054:8: note: in expansion of macro 'DEVICE_ATTR'
    static DEVICE_ATTR(emul_temp, S_IWUSR, NULL, emul_temp_store);
           ^~~~~~~~~~~

vim +/dev_attr_emul_temp +575 include/linux/device.h

ca22e56d Kay Sievers        2011-12-14  559  };
ca22e56d Kay Sievers        2011-12-14  560  
ca22e56d Kay Sievers        2011-12-14  561  ssize_t device_show_ulong(struct device *dev, struct device_attribute *attr,
ca22e56d Kay Sievers        2011-12-14  562  			  char *buf);
ca22e56d Kay Sievers        2011-12-14  563  ssize_t device_store_ulong(struct device *dev, struct device_attribute *attr,
ca22e56d Kay Sievers        2011-12-14  564  			   const char *buf, size_t count);
ca22e56d Kay Sievers        2011-12-14  565  ssize_t device_show_int(struct device *dev, struct device_attribute *attr,
ca22e56d Kay Sievers        2011-12-14  566  			char *buf);
ca22e56d Kay Sievers        2011-12-14  567  ssize_t device_store_int(struct device *dev, struct device_attribute *attr,
ca22e56d Kay Sievers        2011-12-14  568  			 const char *buf, size_t count);
91872392 Borislav Petkov    2012-10-09  569  ssize_t device_show_bool(struct device *dev, struct device_attribute *attr,
91872392 Borislav Petkov    2012-10-09  570  			char *buf);
91872392 Borislav Petkov    2012-10-09  571  ssize_t device_store_bool(struct device *dev, struct device_attribute *attr,
91872392 Borislav Petkov    2012-10-09  572  			 const char *buf, size_t count);
ca22e56d Kay Sievers        2011-12-14  573  
a7fd6706 Kay Sievers        2005-10-01  574  #define DEVICE_ATTR(_name, _mode, _show, _store) \
a7fd6706 Kay Sievers        2005-10-01 @575  	struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)
ced321bf Greg Kroah-Hartman 2013-07-14  576  #define DEVICE_ATTR_RW(_name) \
ced321bf Greg Kroah-Hartman 2013-07-14  577  	struct device_attribute dev_attr_##_name = __ATTR_RW(_name)
ced321bf Greg Kroah-Hartman 2013-07-14  578  #define DEVICE_ATTR_RO(_name) \
ced321bf Greg Kroah-Hartman 2013-07-14  579  	struct device_attribute dev_attr_##_name = __ATTR_RO(_name)
1130c55c Greg Kroah-Hartman 2013-08-23  580  #define DEVICE_ATTR_WO(_name) \
1130c55c Greg Kroah-Hartman 2013-08-23  581  	struct device_attribute dev_attr_##_name = __ATTR_WO(_name)
ca22e56d Kay Sievers        2011-12-14  582  #define DEVICE_ULONG_ATTR(_name, _mode, _var) \
ca22e56d Kay Sievers        2011-12-14  583  	struct dev_ext_attribute dev_attr_##_name = \

:::::: The code at line 575 was first introduced by commit
:::::: a7fd67062efc5b0fc9a61368c607fa92d1d57f9e [PATCH] add sysfs attr to re-emit device hotplug event

:::::: TO: Kay Sievers [off-list ref]
:::::: CC: Greg Kroah-Hartman [off-list ref]

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