From: Paul Mundt Date: Wed, 7 Feb 2007 10:58:07 +0000 (+0900) Subject: sh: Move __KERNEL__ up in asm/page.h. X-Git-Tag: v2.6.21-rc1~179^2~10 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5ba7d545364b85c3a97f65d328be55ca933a9c7;p=linux-2.6 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 --- diff --git a/include/asm-sh/page.h b/include/asm-sh/page.h index 380fd62dd0..ac4b4677f2 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);