summaryrefslogtreecommitdiffstats
path: root/include/asm-sh/page.h
diff options
context:
space:
mode:
authorPaul Mundt2007-02-07 11:58:07 +0100
committerPaul Mundt2007-02-13 02:54:46 +0100
commita5ba7d545364b85c3a97f65d328be55ca933a9c7 (patch)
tree600394a024abd6db2e465061199570b9fde953e1 /include/asm-sh/page.h
parentsh: Fix syscall numbering breakage. (diff)
downloadkernel-qcow2-linux-a5ba7d545364b85c3a97f65d328be55ca933a9c7.tar.gz
kernel-qcow2-linux-a5ba7d545364b85c3a97f65d328be55ca933a9c7.tar.xz
kernel-qcow2-linux-a5ba7d545364b85c3a97f65d328be55ca933a9c7.zip
sh: Move __KERNEL__ up in asm/page.h.
This was breaking the uClibc build, which triggered the bogus page size error. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/asm-sh/page.h')
-rw-r--r--include/asm-sh/page.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-sh/page.h b/include/asm-sh/page.h
index 380fd62dd05a..ac4b4677f28c 100644
--- a/include/asm-sh/page.h
+++ b/include/asm-sh/page.h
@@ -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);