From: Benjamin Herrenschmidt Date: Tue, 4 Jul 2006 04:07:42 +0000 (+1000) Subject: [POWERPC] Fix 32 bits warning in prom_init.c X-Git-Tag: v2.6.18-rc4~73^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=21bd2e6696bb5c8b32b00a0ea597f49bfda0ddc6;p=platform%2Fkernel%2Flinux-3.10.git [POWERPC] Fix 32 bits warning in prom_init.c A warning is hurting my eyes when building 32 bits kernels Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Paul Mackerras --- diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c index b6c3ac2..462bced 100644 --- a/arch/powerpc/kernel/prom_init.c +++ b/arch/powerpc/kernel/prom_init.c @@ -557,7 +557,9 @@ unsigned long prom_memparse(const char *ptr, const char **retptr) static void __init early_cmdline_parse(void) { struct prom_t *_prom = &RELOC(prom); +#ifdef CONFIG_PPC64 const char *opt; +#endif char *p; int l = 0;