From: Armin Wolf Date: Sat, 24 Jul 2021 15:48:17 +0000 (+0200) Subject: hwmon: (w83627ehf) Make DEVICE_ATTR_RO static X-Git-Tag: libata-5.15-2021-09-05~57^2~31 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=6f447ce0f7c16ee501d92091446362aa3359d89a;p=linux-block.git hwmon: (w83627ehf) Make DEVICE_ATTR_RO static Make DEVICE_ATTR_RO static to fix sparse warning: warning: symbol 'dev_attr_cpu0_vid' was not declared. Should it be static? Signed-off-by: Armin Wolf Link: https://lore.kernel.org/r/20210724154817.18796-1-W_Armin@gmx.de Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/w83627ehf.c b/drivers/hwmon/w83627ehf.c index 3cea66c58c25..705a59663d42 100644 --- a/drivers/hwmon/w83627ehf.c +++ b/drivers/hwmon/w83627ehf.c @@ -1081,7 +1081,7 @@ cpu0_vid_show(struct device *dev, struct device_attribute *attr, char *buf) struct w83627ehf_data *data = dev_get_drvdata(dev); return sprintf(buf, "%d\n", vid_from_reg(data->vid, data->vrm)); } -DEVICE_ATTR_RO(cpu0_vid); +static DEVICE_ATTR_RO(cpu0_vid); /* Case open detection */