diff options
Diffstat (limited to 'include/asm-alpha/page.h')
-rw-r--r-- | include/asm-alpha/page.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/asm-alpha/page.h b/include/asm-alpha/page.h index 61bcf70b5ea..d2bed3cb33f 100644 --- a/include/asm-alpha/page.h +++ b/include/asm-alpha/page.h | |||
@@ -1,7 +1,8 @@ | |||
1 | #ifndef _ALPHA_PAGE_H | 1 | #ifndef _ALPHA_PAGE_H |
2 | #define _ALPHA_PAGE_H | 2 | #define _ALPHA_PAGE_H |
3 | 3 | ||
4 | #include <linux/config.h> | 4 | #ifdef __KERNEL__ |
5 | |||
5 | #include <asm/pal.h> | 6 | #include <asm/pal.h> |
6 | 7 | ||
7 | /* PAGE_SHIFT determines the page size */ | 8 | /* PAGE_SHIFT determines the page size */ |
@@ -9,8 +10,6 @@ | |||
9 | #define PAGE_SIZE (1UL << PAGE_SHIFT) | 10 | #define PAGE_SIZE (1UL << PAGE_SHIFT) |
10 | #define PAGE_MASK (~(PAGE_SIZE-1)) | 11 | #define PAGE_MASK (~(PAGE_SIZE-1)) |
11 | 12 | ||
12 | #ifdef __KERNEL__ | ||
13 | |||
14 | #ifndef __ASSEMBLY__ | 13 | #ifndef __ASSEMBLY__ |
15 | 14 | ||
16 | #define STRICT_MM_TYPECHECKS | 15 | #define STRICT_MM_TYPECHECKS |
@@ -93,9 +92,9 @@ typedef unsigned long pgprot_t; | |||
93 | 92 | ||
94 | #define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \ | 93 | #define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \ |
95 | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) | 94 | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) |
96 | #endif /* __KERNEL__ */ | ||
97 | 95 | ||
98 | #include <asm-generic/memory_model.h> | 96 | #include <asm-generic/memory_model.h> |
99 | #include <asm-generic/page.h> | 97 | #include <asm-generic/page.h> |
100 | 98 | ||
99 | #endif /* __KERNEL__ */ | ||
101 | #endif /* _ALPHA_PAGE_H */ | 100 | #endif /* _ALPHA_PAGE_H */ |