sh: Move __KERNEL__ up in asm/page.h.
authorPaul Mundt <lethal@linux-sh.org>
Wed, 7 Feb 2007 10:58:07 +0000 (19:58 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 13 Feb 2007 01:54:46 +0000 (10:54 +0900)
This was breaking the uClibc build, which triggered the bogus page
size error.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
include/asm-sh/page.h

index 380fd62dd05ade8ac5806711c985ee96f94adf93..ac4b4677f28c49e7cfbfd97e78c94ab141927a0b 100644 (file)
@@ -13,6 +13,8 @@
    [ P4 control   ]            0xE0000000
  */
 
+#ifdef __KERNEL__
+
 /* PAGE_SHIFT determines the page size */
 #if defined(CONFIG_PAGE_SIZE_4KB)
 # define PAGE_SHIFT    12
@@ -51,7 +53,6 @@
 #define HUGETLB_PAGE_ORDER     (HPAGE_SHIFT-PAGE_SHIFT)
 #endif
 
-#ifdef __KERNEL__
 #ifndef __ASSEMBLY__
 
 extern void (*clear_page)(void *to);