Skip to content

Commit 0e786f3

Browse files
JasonYanHwgroeck
authored andcommitted
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 <[email protected]> Signed-off-by: Jason Yan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]>
1 parent ed08ebb commit 0e786f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/hwmon/k10temp.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ static long get_raw_temp(struct k10temp_data *data)
186186
return temp;
187187
}
188188

189-
const char *k10temp_temp_label[] = {
189+
static const char *k10temp_temp_label[] = {
190190
"Tctl",
191191
"Tdie",
192192
"Tccd1",
@@ -199,12 +199,12 @@ const char *k10temp_temp_label[] = {
199199
"Tccd8",
200200
};
201201

202-
const char *k10temp_in_label[] = {
202+
static const char *k10temp_in_label[] = {
203203
"Vcore",
204204
"Vsoc",
205205
};
206206

207-
const char *k10temp_curr_label[] = {
207+
static const char *k10temp_curr_label[] = {
208208
"Icore",
209209
"Isoc",
210210
};

0 commit comments

Comments
 (0)