]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/prom: Fix unused variable ‘reserve_map’ when CONFIG_PPC32 is not set
authorCédric Le Goater <clg@kaod.org>
Mon, 23 Aug 2021 09:00:38 +0000 (11:00 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 23 Aug 2021 09:28:21 +0000 (19:28 +1000)
commit7fd3944eff78e84e9817fe6dfdce62e7c1274a4c
tree66929c2a93b243dea7167d94bb6dec265fdb0478
parent80f0a6332aefa93842663ab4ad5ac61162a3300d
powerpc/prom: Fix unused variable ‘reserve_map’ when CONFIG_PPC32 is not set

This fixes a compile error with W=1.

arch/powerpc/kernel/prom.c: In function ‘early_reserve_mem’:
arch/powerpc/kernel/prom.c:625:10: error: variable ‘reserve_map’ set but not used [-Werror=unused-but-set-variable]
  __be64 *reserve_map;
          ^~~~~~~~~~~
cc1: all warnings being treated as errors

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210823090039.166120-2-clg@kaod.org
arch/powerpc/kernel/prom.c