Skip to content

Commit

Permalink
powerpc/32: Fix compile error caused by pud_t/pgt_t confusion
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mackerras committed Jan 11, 2006
1 parent c9c47b6 commit c38a04b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-powerpc/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c38a04b

Please sign in to comment.