]> 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)
commit6d08b44ef24971a94727f8e6c3e4d252370843ac
treecf0860e42d6ecc170913d86e3456fe563105f55e
parent2d5ec289b51f5e058805048c0a0d0fe1f0e2ccaf
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