]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
powerpc/32: Fix compile error caused by pud_t/pgt_t confusion
authorPaul Mackerras <paulus@samba.org>
Wed, 11 Jan 2006 05:27:21 +0000 (16:27 +1100)
committerPaul Mackerras <paulus@samba.org>
Wed, 11 Jan 2006 05:27:21 +0000 (16:27 +1100)
PPC32 is still using asm-generic/4level-fixup.h, but asm-powerpc/page.h
was defining pud_t and pgd_t.  Depending on the order in which files
got included, this could result in a compilation error.  Tweak the ifdef
so that page.h doesn't try to define pud_t on ppc32 (which uses 2-level
page tables).

Signed-off-by: Paul Mackerras <paulus@samba.org>
include/asm-powerpc/page.h

index 76d7cb4b4ffc3f63ec140ccc0740c810b9ac15a3..0b82df483f7f2f79c6d05dc9ae7a92e85001c81f 100644 (file)
@@ -178,7 +178,7 @@ typedef unsigned long pmd_t;
 #define pmd_val(x)     (x)
 #define __pmd(x)       (x)
 
-#ifndef CONFIG_PPC_64K_PAGES
+#if defined(CONFIG_PPC64) && !defined(CONFIG_PPC_64K_PAGES)
 typedef unsigned long pud_t;
 #define pud_val(x)     (x)
 #define __pud(x)       (x)