aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2006-01-11 00:27:21 -0500
committerPaul Mackerras <paulus@samba.org>2006-01-11 00:27:21 -0500
commitc38a04b1ba67e488d94ec680a7dddd4e32d6ddfb (patch)
treeaeda3dd9801217ffcebb3cb66e1b2731de96e29b
parentc9c47b6e27ca49fb0eea6b021b4919cb2467c8e1 (diff)
powerpc/32: Fix compile error caused by pud_t/pgt_t confusion
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>
-rw-r--r--include/asm-powerpc/page.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-powerpc/page.h b/include/asm-powerpc/page.h
index 76d7cb4b4ffc..0b82df483f7f 100644
--- a/include/asm-powerpc/page.h
+++ b/include/asm-powerpc/page.h
@@ -178,7 +178,7 @@ typedef unsigned long pmd_t;
178#define pmd_val(x) (x) 178#define pmd_val(x) (x)
179#define __pmd(x) (x) 179#define __pmd(x) (x)
180 180
181#ifndef CONFIG_PPC_64K_PAGES 181#if defined(CONFIG_PPC64) && !defined(CONFIG_PPC_64K_PAGES)
182typedef unsigned long pud_t; 182typedef unsigned long pud_t;
183#define pud_val(x) (x) 183#define pud_val(x) (x)
184#define __pud(x) (x) 184#define __pud(x) (x)