Skip to content

Commit 0751fdf

Browse files
committed
macintosh/via-pmu: Fix build warning
Now that __fake_sleep is static, we get a warning about it being unused in some configurations: drivers/macintosh/via-pmu.c:190:12: warning: '__fake_sleep' defined but not used 190 | static int __fake_sleep; Move it inside the ifdef where it's used to avoid the warning. Fixes: 95d1439 ("macintosh/via-pmu: Make some symbols static") Reported-by: Stephen Rothwell <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 7767d9a commit 0751fdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/macintosh/via-pmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ 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-
static int __fake_sleep;
191190
int asleep;
192191

193192
#ifdef CONFIG_ADB
@@ -1833,6 +1832,7 @@ pmu_present(void)
18331832
*/
18341833

18351834
static u32 save_via[8];
1835+
static int __fake_sleep;
18361836

18371837
static void
18381838
save_via_state(void)

0 commit comments

Comments
 (0)