]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (w83627ehf) make sensor_dev_attr_##_name variables static
authorChen Zhou <chenzhou10@huawei.com>
Fri, 13 Dec 2019 01:56:05 +0000 (09:56 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 23 Jan 2020 21:15:09 +0000 (13:15 -0800)
commit7a361aee3b965745c3c8860af9d6b284169cea0e
treecf0860e42d6ecc170913d86e3456fe563105f55e
parentf04c3c7672541315cce9c89e06152f216b6a5b16
hwmon: (w83627ehf) make sensor_dev_attr_##_name variables static

Fix sparse warning:

drivers/hwmon/w83627ehf.c:1202:1: warning:
symbol 'sensor_dev_attr_pwm1_target' was not declared. Should it be static?

and many more similar messages.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Chen Zhou <chenzhou10@huawei.com>
Link: https://lore.kernel.org/r/20191213015605.172472-1-chenzhou10@huawei.com
[groeck: Dropped all but one log message from description]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/w83627ehf.c