]> git.baikalelectronics.ru Git - kernel.git/commit
macintosh/via-pmu: Fix build warning
authorMichael Ellerman <mpe@ellerman.id.au>
Fri, 16 Apr 2021 11:38:04 +0000 (21:38 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 16 Apr 2021 13:57:51 +0000 (23:57 +1000)
commit3a39d044ac5b14277a513b3780e0465a44f0b2d9
treefd6e49cbc384781f0820bf2fc3b4839263465dd5
parent758afe7b7e79c7e1c3b9aadeaaeed0d5d698d63e
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: cbf95ee7b9f3 ("macintosh/via-pmu: Make some symbols static")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210416114139.772236-1-mpe@ellerman.id.au
drivers/macintosh/via-pmu.c