[ARM] 5051/1: define pgtable_t for the !CONFIG_MMU case too
authorGreg Ungerer <gerg@snapgear.com>
Fri, 23 May 2008 06:16:52 +0000 (07:16 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 23 May 2008 12:50:05 +0000 (13:50 +0100)
The non-MMU case also needs the type definition of pgtable_t.
So move it out of a CONFIG_MMU conditional section.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
include/asm-arm/page.h

index 5c22b01121069751e2ed73049ec6d37ae54a18c9..8e05bdb5f12f555f94c66b8ff1c008c3a3a5cb86 100644 (file)
@@ -179,10 +179,10 @@ typedef unsigned long pgprot_t;
 
 #endif /* STRICT_MM_TYPECHECKS */
 
-typedef struct page *pgtable_t;
-
 #endif /* CONFIG_MMU */
 
+typedef struct page *pgtable_t;
+
 #include <asm/memory.h>
 
 #endif /* !__ASSEMBLY__ */