diff options
Diffstat (limited to 'include/asm-parisc/page.h')
-rw-r--r-- | include/asm-parisc/page.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asm-parisc/page.h b/include/asm-parisc/page.h index f6bba4c13664..b59a1504fc7a 100644 --- a/include/asm-parisc/page.h +++ b/include/asm-parisc/page.h | |||
@@ -3,6 +3,8 @@ | |||
3 | 3 | ||
4 | #ifdef __KERNEL__ | 4 | #ifdef __KERNEL__ |
5 | 5 | ||
6 | #include <linux/const.h> | ||
7 | |||
6 | #if defined(CONFIG_PARISC_PAGE_SIZE_4KB) | 8 | #if defined(CONFIG_PARISC_PAGE_SIZE_4KB) |
7 | # define PAGE_SHIFT 12 | 9 | # define PAGE_SHIFT 12 |
8 | #elif defined(CONFIG_PARISC_PAGE_SIZE_16KB) | 10 | #elif defined(CONFIG_PARISC_PAGE_SIZE_16KB) |
@@ -12,7 +14,7 @@ | |||
12 | #else | 14 | #else |
13 | # error "unknown default kernel page size" | 15 | # error "unknown default kernel page size" |
14 | #endif | 16 | #endif |
15 | #define PAGE_SIZE (1UL << PAGE_SHIFT) | 17 | #define PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT) |
16 | #define PAGE_MASK (~(PAGE_SIZE-1)) | 18 | #define PAGE_MASK (~(PAGE_SIZE-1)) |
17 | 19 | ||
18 | 20 | ||