aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorJason Yan <yanaijie@huawei.com>2020-04-09 16:45:02 +0800
committerGuenter Roeck <linux@roeck-us.net>2020-04-12 15:12:51 -0700
commit0e786f328b382e6df64f31390973b81f8fb9a044 (patch)
tree48cd888875ee3cd4bf99ccea93ce4754b9b96f48 /drivers/hwmon
parenthwmon: (drivetemp) Return -ENODATA for invalid temperatures (diff)
downloadwireguard-linux-0e786f328b382e6df64f31390973b81f8fb9a044.tar.xz
wireguard-linux-0e786f328b382e6df64f31390973b81f8fb9a044.zip
hwmon: (k10temp) make some symbols static
Fix the following sparse warning: drivers/hwmon/k10temp.c:189:12: warning: symbol 'k10temp_temp_label' was not declared. Should it be static? drivers/hwmon/k10temp.c:202:12: warning: symbol 'k10temp_in_label' was not declared. Should it be static? drivers/hwmon/k10temp.c:207:12: warning: symbol 'k10temp_curr_label' was not declared. Should it be static? Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Jason Yan <yanaijie@huawei.com> Link: https://lore.kernel.org/r/20200409084502.42126-1-yanaijie@huawei.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/k10temp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c
index 3f37d5d81fe4..9915578533bb 100644
--- a/drivers/hwmon/k10temp.c
+++ b/drivers/hwmon/k10temp.c
@@ -186,7 +186,7 @@ static long get_raw_temp(struct k10temp_data *data)
return temp;
}
-const char *k10temp_temp_label[] = {
+static const char *k10temp_temp_label[] = {
"Tctl",
"Tdie",
"Tccd1",
@@ -199,12 +199,12 @@ const char *k10temp_temp_label[] = {
"Tccd8",
};
-const char *k10temp_in_label[] = {
+static const char *k10temp_in_label[] = {
"Vcore",
"Vsoc",
};
-const char *k10temp_curr_label[] = {
+static const char *k10temp_curr_label[] = {
"Icore",
"Isoc",
};