Skip to content

Commit 95d1439

Browse files
YuKuai-huaweimpe
authored andcommitted
macintosh/via-pmu: Make some symbols static
The sparse tool complains as follows: drivers/macintosh/via-pmu.c:183:5: warning: symbol 'pmu_cur_battery' was not declared. Should it be static? drivers/macintosh/via-pmu.c:190:5: warning: symbol '__fake_sleep' was not declared. Should it be static? These symbols are not used outside of via-pmu.c, so this commit marks them static. Reported-by: Hulk Robot <[email protected]> Signed-off-by: Yu Kuai <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 4204ecd commit 95d1439

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/macintosh/via-pmu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,14 @@ static struct proc_dir_entry *proc_pmu_options;
180180
static int option_server_mode;
181181

182182
int pmu_battery_count;
183-
int pmu_cur_battery;
183+
static int pmu_cur_battery;
184184
unsigned int pmu_power_flags = PMU_PWR_AC_PRESENT;
185185
struct pmu_battery_info pmu_batteries[PMU_MAX_BATTERIES];
186186
static int query_batt_timer = BATTERY_POLLING_COUNT;
187187
static struct adb_request batt_req;
188188
static struct proc_dir_entry *proc_pmu_batt[PMU_MAX_BATTERIES];
189189

190-
int __fake_sleep;
190+
static int __fake_sleep;
191191
int asleep;
192192

193193
#ifdef CONFIG_ADB

0 commit comments

Comments
 (0)