Thread (19 messages) flat view 19 messages, 4 authors, 2022-03-15

Re: [PATCH 1/6] powerpc/prom: Introduce early_reserve_mem_old()

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2021-08-20 12:23:08

Christophe Leroy [off-list ref] writes:
Le 19/08/2021 à 14:56, Cédric Le Goater a écrit :
quoted
and condition its call with IS_ENABLED(CONFIG_PPC32). 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

Cc: Christophe Leroy <redacted>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
---

  Christophe, I think you had comments on this one ? Yes, I am being a bit lazy.

Yeah, my comment was to leave thing almost as is, just drop the #ifdef CONFIG_PPC32 and instead put 
something like:

	if (!IS_ENABLED(CONFIG_PPC32))
		return;
Yeah that's cleaner, let's do that.

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help