diff options
25 files changed, 30 insertions, 30 deletions
diff --git a/arch/alpha/include/asm/page.h b/arch/alpha/include/asm/page.h index 0995f9d13417..07af062544fb 100644 --- a/arch/alpha/include/asm/page.h +++ b/arch/alpha/include/asm/page.h | |||
@@ -93,6 +93,6 @@ typedef struct page *pgtable_t; | |||
93 | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) | 93 | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) |
94 | 94 | ||
95 | #include <asm-generic/memory_model.h> | 95 | #include <asm-generic/memory_model.h> |
96 | #include <asm-generic/page.h> | 96 | #include <asm-generic/getorder.h> |
97 | 97 | ||
98 | #endif /* _ALPHA_PAGE_H */ | 98 | #endif /* _ALPHA_PAGE_H */ |
diff --git a/arch/arm/include/asm/page.h b/arch/arm/include/asm/page.h index 7b522770f29d..be962c1349c4 100644 --- a/arch/arm/include/asm/page.h +++ b/arch/arm/include/asm/page.h | |||
@@ -202,6 +202,6 @@ typedef struct page *pgtable_t; | |||
202 | (((current->personality & READ_IMPLIES_EXEC) ? VM_EXEC : 0) | \ | 202 | (((current->personality & READ_IMPLIES_EXEC) ? VM_EXEC : 0) | \ |
203 | VM_READ | VM_WRITE | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) | 203 | VM_READ | VM_WRITE | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) |
204 | 204 | ||
205 | #include <asm-generic/page.h> | 205 | #include <asm-generic/getorder.h> |
206 | 206 | ||
207 | #endif | 207 | #endif |
diff --git a/arch/blackfin/include/asm/page.h b/arch/blackfin/include/asm/page.h index 344f6a8c1f22..3ea2016a1d4a 100644 --- a/arch/blackfin/include/asm/page.h +++ b/arch/blackfin/include/asm/page.h | |||
@@ -81,7 +81,7 @@ extern unsigned long memory_end; | |||
81 | #define virt_addr_valid(kaddr) (((void *)(kaddr) >= (void *)PAGE_OFFSET) && \ | 81 | #define virt_addr_valid(kaddr) (((void *)(kaddr) >= (void *)PAGE_OFFSET) && \ |
82 | ((void *)(kaddr) < (void *)memory_end)) | 82 | ((void *)(kaddr) < (void *)memory_end)) |
83 | 83 | ||
84 | #include <asm-generic/page.h> | 84 | #include <asm-generic/getorder.h> |
85 | 85 | ||
86 | #endif /* __ASSEMBLY__ */ | 86 | #endif /* __ASSEMBLY__ */ |
87 | 87 | ||
diff --git a/arch/cris/include/asm/page.h b/arch/cris/include/asm/page.h index f3fdbd09c34c..be45ee366be9 100644 --- a/arch/cris/include/asm/page.h +++ b/arch/cris/include/asm/page.h | |||
@@ -68,7 +68,7 @@ typedef struct page *pgtable_t; | |||
68 | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) | 68 | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) |
69 | 69 | ||
70 | #include <asm-generic/memory_model.h> | 70 | #include <asm-generic/memory_model.h> |
71 | #include <asm-generic/page.h> | 71 | #include <asm-generic/getorder.h> |
72 | 72 | ||
73 | #endif /* _CRIS_PAGE_H */ | 73 | #endif /* _CRIS_PAGE_H */ |
74 | 74 | ||
diff --git a/arch/frv/include/asm/page.h b/arch/frv/include/asm/page.h index bd9c220094c7..25c6a5002355 100644 --- a/arch/frv/include/asm/page.h +++ b/arch/frv/include/asm/page.h | |||
@@ -73,6 +73,6 @@ extern unsigned long max_pfn; | |||
73 | #endif /* __ASSEMBLY__ */ | 73 | #endif /* __ASSEMBLY__ */ |
74 | 74 | ||
75 | #include <asm-generic/memory_model.h> | 75 | #include <asm-generic/memory_model.h> |
76 | #include <asm-generic/page.h> | 76 | #include <asm-generic/getorder.h> |
77 | 77 | ||
78 | #endif /* _ASM_PAGE_H */ | 78 | #endif /* _ASM_PAGE_H */ |
diff --git a/arch/h8300/include/asm/page.h b/arch/h8300/include/asm/page.h index 0b6acf0b03aa..837381a2df46 100644 --- a/arch/h8300/include/asm/page.h +++ b/arch/h8300/include/asm/page.h | |||
@@ -73,6 +73,6 @@ extern unsigned long memory_end; | |||
73 | #endif /* __ASSEMBLY__ */ | 73 | #endif /* __ASSEMBLY__ */ |
74 | 74 | ||
75 | #include <asm-generic/memory_model.h> | 75 | #include <asm-generic/memory_model.h> |
76 | #include <asm-generic/page.h> | 76 | #include <asm-generic/getorder.h> |
77 | 77 | ||
78 | #endif /* _H8300_PAGE_H */ | 78 | #endif /* _H8300_PAGE_H */ |
diff --git a/arch/m32r/include/asm/page.h b/arch/m32r/include/asm/page.h index c9333089fe11..11777f7a5628 100644 --- a/arch/m32r/include/asm/page.h +++ b/arch/m32r/include/asm/page.h | |||
@@ -82,6 +82,6 @@ typedef struct page *pgtable_t; | |||
82 | #define devmem_is_allowed(x) 1 | 82 | #define devmem_is_allowed(x) 1 |
83 | 83 | ||
84 | #include <asm-generic/memory_model.h> | 84 | #include <asm-generic/memory_model.h> |
85 | #include <asm-generic/page.h> | 85 | #include <asm-generic/getorder.h> |
86 | 86 | ||
87 | #endif /* _ASM_M32R_PAGE_H */ | 87 | #endif /* _ASM_M32R_PAGE_H */ |
diff --git a/arch/m68k/include/asm/page_mm.h b/arch/m68k/include/asm/page_mm.h index a34b8bad7847..d009f3ea39ab 100644 --- a/arch/m68k/include/asm/page_mm.h +++ b/arch/m68k/include/asm/page_mm.h | |||
@@ -223,6 +223,6 @@ static inline __attribute_const__ int __virt_to_node_shift(void) | |||
223 | #define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \ | 223 | #define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \ |
224 | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) | 224 | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) |
225 | 225 | ||
226 | #include <asm-generic/page.h> | 226 | #include <asm-generic/getorder.h> |
227 | 227 | ||
228 | #endif /* _M68K_PAGE_H */ | 228 | #endif /* _M68K_PAGE_H */ |
diff --git a/arch/m68k/include/asm/page_no.h b/arch/m68k/include/asm/page_no.h index 3a1ede4544cb..9aa3f90f4855 100644 --- a/arch/m68k/include/asm/page_no.h +++ b/arch/m68k/include/asm/page_no.h | |||
@@ -72,6 +72,6 @@ extern unsigned long memory_end; | |||
72 | 72 | ||
73 | #endif /* __ASSEMBLY__ */ | 73 | #endif /* __ASSEMBLY__ */ |
74 | 74 | ||
75 | #include <asm-generic/page.h> | 75 | #include <asm-generic/getorder.h> |
76 | 76 | ||
77 | #endif /* _M68KNOMMU_PAGE_H */ | 77 | #endif /* _M68KNOMMU_PAGE_H */ |
diff --git a/arch/microblaze/include/asm/page.h b/arch/microblaze/include/asm/page.h index 7238dcfcc517..962c210e5b9a 100644 --- a/arch/microblaze/include/asm/page.h +++ b/arch/microblaze/include/asm/page.h | |||
@@ -135,6 +135,6 @@ extern unsigned int memory_size; | |||
135 | #endif /* __KERNEL__ */ | 135 | #endif /* __KERNEL__ */ |
136 | 136 | ||
137 | #include <asm-generic/memory_model.h> | 137 | #include <asm-generic/memory_model.h> |
138 | #include <asm-generic/page.h> | 138 | #include <asm-generic/getorder.h> |
139 | 139 | ||
140 | #endif /* _ASM_MICROBLAZE_PAGE_H */ | 140 | #endif /* _ASM_MICROBLAZE_PAGE_H */ |
diff --git a/arch/mips/include/asm/page.h b/arch/mips/include/asm/page.h index 9f946e4ca057..72c80d2034c2 100644 --- a/arch/mips/include/asm/page.h +++ b/arch/mips/include/asm/page.h | |||
@@ -189,6 +189,6 @@ typedef struct { unsigned long pgprot; } pgprot_t; | |||
189 | #define CAC_ADDR(addr) ((addr) - UNCAC_BASE + PAGE_OFFSET) | 189 | #define CAC_ADDR(addr) ((addr) - UNCAC_BASE + PAGE_OFFSET) |
190 | 190 | ||
191 | #include <asm-generic/memory_model.h> | 191 | #include <asm-generic/memory_model.h> |
192 | #include <asm-generic/page.h> | 192 | #include <asm-generic/getorder.h> |
193 | 193 | ||
194 | #endif /* _ASM_PAGE_H */ | 194 | #endif /* _ASM_PAGE_H */ |
diff --git a/arch/parisc/include/asm/page.h b/arch/parisc/include/asm/page.h index 7bc5125d7d4c..a84cc1f925f6 100644 --- a/arch/parisc/include/asm/page.h +++ b/arch/parisc/include/asm/page.h | |||
@@ -159,6 +159,6 @@ extern int npmem_ranges; | |||
159 | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) | 159 | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) |
160 | 160 | ||
161 | #include <asm-generic/memory_model.h> | 161 | #include <asm-generic/memory_model.h> |
162 | #include <asm-generic/page.h> | 162 | #include <asm-generic/getorder.h> |
163 | 163 | ||
164 | #endif /* _PARISC_PAGE_H */ | 164 | #endif /* _PARISC_PAGE_H */ |
diff --git a/arch/parisc/include/asm/uaccess.h b/arch/parisc/include/asm/uaccess.h index cd4c0b2a8e70..7cf799d70b4c 100644 --- a/arch/parisc/include/asm/uaccess.h +++ b/arch/parisc/include/asm/uaccess.h | |||
@@ -7,7 +7,7 @@ | |||
7 | #include <asm/page.h> | 7 | #include <asm/page.h> |
8 | #include <asm/system.h> | 8 | #include <asm/system.h> |
9 | #include <asm/cache.h> | 9 | #include <asm/cache.h> |
10 | #include <asm-generic/uaccess.h> | 10 | #include <asm-generic/uaccess-unaligned.h> |
11 | 11 | ||
12 | #define VERIFY_READ 0 | 12 | #define VERIFY_READ 0 |
13 | #define VERIFY_WRITE 1 | 13 | #define VERIFY_WRITE 1 |
diff --git a/arch/powerpc/include/asm/page_32.h b/arch/powerpc/include/asm/page_32.h index a0e3f6e6b4ee..bd0849dbcaaa 100644 --- a/arch/powerpc/include/asm/page_32.h +++ b/arch/powerpc/include/asm/page_32.h | |||
@@ -41,7 +41,7 @@ extern void clear_pages(void *page, int order); | |||
41 | static inline void clear_page(void *page) { clear_pages(page, 0); } | 41 | static inline void clear_page(void *page) { clear_pages(page, 0); } |
42 | extern void copy_page(void *to, void *from); | 42 | extern void copy_page(void *to, void *from); |
43 | 43 | ||
44 | #include <asm-generic/page.h> | 44 | #include <asm-generic/getorder.h> |
45 | 45 | ||
46 | #define PGD_T_LOG2 (__builtin_ffs(sizeof(pgd_t)) - 1) | 46 | #define PGD_T_LOG2 (__builtin_ffs(sizeof(pgd_t)) - 1) |
47 | #define PTE_T_LOG2 (__builtin_ffs(sizeof(pte_t)) - 1) | 47 | #define PTE_T_LOG2 (__builtin_ffs(sizeof(pte_t)) - 1) |
diff --git a/arch/powerpc/include/asm/page_64.h b/arch/powerpc/include/asm/page_64.h index 043bfdfe4f73..5817a3b747e5 100644 --- a/arch/powerpc/include/asm/page_64.h +++ b/arch/powerpc/include/asm/page_64.h | |||
@@ -180,6 +180,6 @@ do { \ | |||
180 | (test_thread_flag(TIF_32BIT) ? \ | 180 | (test_thread_flag(TIF_32BIT) ? \ |
181 | VM_STACK_DEFAULT_FLAGS32 : VM_STACK_DEFAULT_FLAGS64) | 181 | VM_STACK_DEFAULT_FLAGS32 : VM_STACK_DEFAULT_FLAGS64) |
182 | 182 | ||
183 | #include <asm-generic/page.h> | 183 | #include <asm-generic/getorder.h> |
184 | 184 | ||
185 | #endif /* _ASM_POWERPC_PAGE_64_H */ | 185 | #endif /* _ASM_POWERPC_PAGE_64_H */ |
diff --git a/arch/s390/include/asm/page.h b/arch/s390/include/asm/page.h index 32e8f6aa4384..3e3594d01f83 100644 --- a/arch/s390/include/asm/page.h +++ b/arch/s390/include/asm/page.h | |||
@@ -150,7 +150,7 @@ void arch_alloc_page(struct page *page, int order); | |||
150 | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) | 150 | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) |
151 | 151 | ||
152 | #include <asm-generic/memory_model.h> | 152 | #include <asm-generic/memory_model.h> |
153 | #include <asm-generic/page.h> | 153 | #include <asm-generic/getorder.h> |
154 | 154 | ||
155 | #define __HAVE_ARCH_GATE_AREA 1 | 155 | #define __HAVE_ARCH_GATE_AREA 1 |
156 | 156 | ||
diff --git a/arch/sh/include/asm/page.h b/arch/sh/include/asm/page.h index 9c6d21ec0240..49592c780a6e 100644 --- a/arch/sh/include/asm/page.h +++ b/arch/sh/include/asm/page.h | |||
@@ -163,7 +163,7 @@ typedef struct page *pgtable_t; | |||
163 | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) | 163 | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) |
164 | 164 | ||
165 | #include <asm-generic/memory_model.h> | 165 | #include <asm-generic/memory_model.h> |
166 | #include <asm-generic/page.h> | 166 | #include <asm-generic/getorder.h> |
167 | 167 | ||
168 | /* vDSO support */ | 168 | /* vDSO support */ |
169 | #ifdef CONFIG_VSYSCALL | 169 | #ifdef CONFIG_VSYSCALL |
diff --git a/arch/sparc/include/asm/page_32.h b/arch/sparc/include/asm/page_32.h index d1806edc0958..f72080bdda94 100644 --- a/arch/sparc/include/asm/page_32.h +++ b/arch/sparc/include/asm/page_32.h | |||
@@ -152,6 +152,6 @@ extern unsigned long pfn_base; | |||
152 | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) | 152 | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) |
153 | 153 | ||
154 | #include <asm-generic/memory_model.h> | 154 | #include <asm-generic/memory_model.h> |
155 | #include <asm-generic/page.h> | 155 | #include <asm-generic/getorder.h> |
156 | 156 | ||
157 | #endif /* _SPARC_PAGE_H */ | 157 | #endif /* _SPARC_PAGE_H */ |
diff --git a/arch/sparc/include/asm/page_64.h b/arch/sparc/include/asm/page_64.h index 4274ed13ddb2..f0d09b401036 100644 --- a/arch/sparc/include/asm/page_64.h +++ b/arch/sparc/include/asm/page_64.h | |||
@@ -132,6 +132,6 @@ typedef struct page *pgtable_t; | |||
132 | #define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \ | 132 | #define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \ |
133 | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) | 133 | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) |
134 | 134 | ||
135 | #include <asm-generic/page.h> | 135 | #include <asm-generic/getorder.h> |
136 | 136 | ||
137 | #endif /* _SPARC64_PAGE_H */ | 137 | #endif /* _SPARC64_PAGE_H */ |
diff --git a/arch/sparc/include/asm/uaccess_64.h b/arch/sparc/include/asm/uaccess_64.h index c64e767a3e4b..a38c03238918 100644 --- a/arch/sparc/include/asm/uaccess_64.h +++ b/arch/sparc/include/asm/uaccess_64.h | |||
@@ -12,7 +12,7 @@ | |||
12 | #include <asm/asi.h> | 12 | #include <asm/asi.h> |
13 | #include <asm/system.h> | 13 | #include <asm/system.h> |
14 | #include <asm/spitfire.h> | 14 | #include <asm/spitfire.h> |
15 | #include <asm-generic/uaccess.h> | 15 | #include <asm-generic/uaccess-unaligned.h> |
16 | #endif | 16 | #endif |
17 | 17 | ||
18 | #ifndef __ASSEMBLY__ | 18 | #ifndef __ASSEMBLY__ |
diff --git a/arch/um/include/asm/page.h b/arch/um/include/asm/page.h index 55f28a0bae6d..4cc9b6cf480a 100644 --- a/arch/um/include/asm/page.h +++ b/arch/um/include/asm/page.h | |||
@@ -116,7 +116,7 @@ extern unsigned long uml_physmem; | |||
116 | #define virt_addr_valid(v) pfn_valid(phys_to_pfn(__pa(v))) | 116 | #define virt_addr_valid(v) pfn_valid(phys_to_pfn(__pa(v))) |
117 | 117 | ||
118 | #include <asm-generic/memory_model.h> | 118 | #include <asm-generic/memory_model.h> |
119 | #include <asm-generic/page.h> | 119 | #include <asm-generic/getorder.h> |
120 | 120 | ||
121 | #endif /* __ASSEMBLY__ */ | 121 | #endif /* __ASSEMBLY__ */ |
122 | #endif /* __UM_PAGE_H */ | 122 | #endif /* __UM_PAGE_H */ |
diff --git a/arch/x86/include/asm/page.h b/arch/x86/include/asm/page.h index 89ed9d70b0aa..625c3f0e741a 100644 --- a/arch/x86/include/asm/page.h +++ b/arch/x86/include/asm/page.h | |||
@@ -56,7 +56,7 @@ extern bool __virt_addr_valid(unsigned long kaddr); | |||
56 | #endif /* __ASSEMBLY__ */ | 56 | #endif /* __ASSEMBLY__ */ |
57 | 57 | ||
58 | #include <asm-generic/memory_model.h> | 58 | #include <asm-generic/memory_model.h> |
59 | #include <asm-generic/page.h> | 59 | #include <asm-generic/getorder.h> |
60 | 60 | ||
61 | #define __HAVE_ARCH_GATE_AREA 1 | 61 | #define __HAVE_ARCH_GATE_AREA 1 |
62 | 62 | ||
diff --git a/arch/xtensa/include/asm/page.h b/arch/xtensa/include/asm/page.h index 17e0c5383b10..161bb89e98c8 100644 --- a/arch/xtensa/include/asm/page.h +++ b/arch/xtensa/include/asm/page.h | |||
@@ -129,7 +129,7 @@ static inline __attribute_const__ int get_order(unsigned long size) | |||
129 | 129 | ||
130 | #else | 130 | #else |
131 | 131 | ||
132 | # include <asm-generic/page.h> | 132 | # include <asm-generic/getorder.h> |
133 | 133 | ||
134 | #endif | 134 | #endif |
135 | 135 | ||
diff --git a/include/asm-generic/page.h b/include/asm-generic/getorder.h index 14db733b8e68..67e7245dc9b3 100644 --- a/include/asm-generic/page.h +++ b/include/asm-generic/getorder.h | |||
@@ -1,12 +1,12 @@ | |||
1 | #ifndef _ASM_GENERIC_PAGE_H | 1 | #ifndef __ASM_GENERIC_GETORDER_H |
2 | #define _ASM_GENERIC_PAGE_H | 2 | #define __ASM_GENERIC_GETORDER_H |
3 | 3 | ||
4 | #ifndef __ASSEMBLY__ | 4 | #ifndef __ASSEMBLY__ |
5 | 5 | ||
6 | #include <linux/compiler.h> | 6 | #include <linux/compiler.h> |
7 | 7 | ||
8 | /* Pure 2^n version of get_order */ | 8 | /* Pure 2^n version of get_order */ |
9 | static __inline__ __attribute_const__ int get_order(unsigned long size) | 9 | static inline __attribute_const__ int get_order(unsigned long size) |
10 | { | 10 | { |
11 | int order; | 11 | int order; |
12 | 12 | ||
@@ -21,4 +21,4 @@ static __inline__ __attribute_const__ int get_order(unsigned long size) | |||
21 | 21 | ||
22 | #endif /* __ASSEMBLY__ */ | 22 | #endif /* __ASSEMBLY__ */ |
23 | 23 | ||
24 | #endif /* _ASM_GENERIC_PAGE_H */ | 24 | #endif /* __ASM_GENERIC_GETORDER_H */ |
diff --git a/include/asm-generic/uaccess.h b/include/asm-generic/uaccess-unaligned.h index 549cb3a1640a..67deb898f0c5 100644 --- a/include/asm-generic/uaccess.h +++ b/include/asm-generic/uaccess-unaligned.h | |||
@@ -1,5 +1,5 @@ | |||
1 | #ifndef _ASM_GENERIC_UACCESS_H_ | 1 | #ifndef __ASM_GENERIC_UACCESS_UNALIGNED_H |
2 | #define _ASM_GENERIC_UACCESS_H_ | 2 | #define __ASM_GENERIC_UACCESS_UNALIGNED_H |
3 | 3 | ||
4 | /* | 4 | /* |
5 | * This macro should be used instead of __get_user() when accessing | 5 | * This macro should be used instead of __get_user() when accessing |
@@ -23,4 +23,4 @@ | |||
23 | __copy_to_user((ptr), &__x, sizeof(*(ptr))) ? -EFAULT : 0; \ | 23 | __copy_to_user((ptr), &__x, sizeof(*(ptr))) ? -EFAULT : 0; \ |
24 | }) | 24 | }) |
25 | 25 | ||
26 | #endif /* _ASM_GENERIC_UACCESS_H */ | 26 | #endif /* __ASM_GENERIC_UACCESS_UNALIGNED_H */ |