diff options
Diffstat (limited to 'include/asm-um/page.h')
-rw-r--r-- | include/asm-um/page.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/include/asm-um/page.h b/include/asm-um/page.h index 381f96b1c825..916e1a61999f 100644 --- a/include/asm-um/page.h +++ b/include/asm-um/page.h | |||
@@ -7,16 +7,20 @@ | |||
7 | #ifndef __UM_PAGE_H | 7 | #ifndef __UM_PAGE_H |
8 | #define __UM_PAGE_H | 8 | #define __UM_PAGE_H |
9 | 9 | ||
10 | struct page; | 10 | #include <linux/const.h> |
11 | |||
12 | #include <linux/types.h> | ||
13 | #include <asm/vm-flags.h> | ||
14 | 11 | ||
15 | /* PAGE_SHIFT determines the page size */ | 12 | /* PAGE_SHIFT determines the page size */ |
16 | #define PAGE_SHIFT 12 | 13 | #define PAGE_SHIFT 12 |
17 | #define PAGE_SIZE (1UL << PAGE_SHIFT) | 14 | #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT) |
18 | #define PAGE_MASK (~(PAGE_SIZE-1)) | 15 | #define PAGE_MASK (~(PAGE_SIZE-1)) |
19 | 16 | ||
17 | #ifndef __ASSEMBLY__ | ||
18 | |||
19 | struct page; | ||
20 | |||
21 | #include <linux/types.h> | ||
22 | #include <asm/vm-flags.h> | ||
23 | |||
20 | /* | 24 | /* |
21 | * These are used to make use of C type-checking.. | 25 | * These are used to make use of C type-checking.. |
22 | */ | 26 | */ |
@@ -120,4 +124,5 @@ extern struct page *arch_validate(struct page *page, gfp_t mask, int order); | |||
120 | #include <asm-generic/memory_model.h> | 124 | #include <asm-generic/memory_model.h> |
121 | #include <asm-generic/page.h> | 125 | #include <asm-generic/page.h> |
122 | 126 | ||
123 | #endif | 127 | #endif /* __ASSEMBLY__ */ |
128 | #endif /* __UM_PAGE_H */ | ||