Skip to content

Commit

Permalink
x86: fix pgtable_t build breakage
Browse files Browse the repository at this point in the history
Commit 2f569af ("CONFIG_HIGHPTE vs.
sub-page page tables") caused some build breakage due to pgtable_t only
getting declared in the CONFIG_X86_PAE case.

Move the declaration outside the PAE section.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Ingo Molnar authored and Linus Torvalds committed Feb 8, 2008
1 parent f0e2dcf commit 3bf8f5a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/asm-x86/page_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,13 @@ typedef unsigned long phys_addr_t;
typedef union { pteval_t pte, pte_low; } pte_t;
typedef pte_t boot_pte_t;

typedef struct page *pgtable_t;

#endif /* __ASSEMBLY__ */
#endif /* CONFIG_X86_PAE */

#ifndef __ASSEMBLY__
typedef struct page *pgtable_t;
#endif

#ifdef CONFIG_HUGETLB_PAGE
#define HAVE_ARCH_HUGETLB_UNMAPPED_AREA
#endif
Expand Down

0 comments on commit 3bf8f5a

Please sign in to comment.