]> err.no Git - linux-2.6/commitdiff
[POWERPC] Fix 32 bits warning in prom_init.c
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 4 Jul 2006 04:07:42 +0000 (14:07 +1000)
committerPaul Mackerras <paulus@samba.org>
Fri, 7 Jul 2006 10:19:15 +0000 (20:19 +1000)
A warning is hurting my eyes when building 32 bits kernels

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/prom_init.c

index b6c3ac20c14cb8c3718e487a998889b710c4260b..462bced40c128de355e9bc15c16989c3cfea8c5e 100644 (file)
@@ -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;