asm-generic: rename page.h and uaccess.h
authorArnd Bergmann <arnd@arndb.de>
Wed, 13 May 2009 22:56:30 +0000 (22:56 +0000)
committerArnd Bergmann <arnd@klappe2.(none)>
Thu, 11 Jun 2009 19:02:17 +0000 (21:02 +0200)
The current asm-generic/page.h only contains the get_order
function, and asm-generic/uaccess.h only implements
unaligned accesses. This renames the file to getorder.h
and uaccess-unaligned.h to make room for new page.h
and uaccess.h file that will be usable by all simple
(e.g. nommu) architectures.

Signed-off-by: Remis Lima Baima <remis.developer@googlemail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
25 files changed:
arch/alpha/include/asm/page.h
arch/arm/include/asm/page.h
arch/blackfin/include/asm/page.h
arch/cris/include/asm/page.h
arch/frv/include/asm/page.h
arch/h8300/include/asm/page.h
arch/m32r/include/asm/page.h
arch/m68k/include/asm/page_mm.h
arch/m68k/include/asm/page_no.h
arch/microblaze/include/asm/page.h
arch/mips/include/asm/page.h
arch/parisc/include/asm/page.h
arch/parisc/include/asm/uaccess.h
arch/powerpc/include/asm/page_32.h
arch/powerpc/include/asm/page_64.h
arch/s390/include/asm/page.h
arch/sh/include/asm/page.h
arch/sparc/include/asm/page_32.h
arch/sparc/include/asm/page_64.h
arch/sparc/include/asm/uaccess_64.h
arch/um/include/asm/page.h
arch/x86/include/asm/page.h
arch/xtensa/include/asm/page.h
include/asm-generic/getorder.h [moved from include/asm-generic/page.h with 59% similarity]
include/asm-generic/uaccess-unaligned.h [moved from include/asm-generic/uaccess.h with 82% similarity]

index 0995f9d13417241e283cad83bd4f0729af014c66..07af062544fb75fd68866e05d4983850863b0f45 100644 (file)
@@ -93,6 +93,6 @@ typedef struct page *pgtable_t;
                                         VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
 
 #include <asm-generic/memory_model.h>
-#include <asm-generic/page.h>
+#include <asm-generic/getorder.h>
 
 #endif /* _ALPHA_PAGE_H */
index 7b522770f29dc6e967f3c719817925ebf753c6e1..be962c1349c4aa17a65f4cd364fd6221f1ea83bc 100644 (file)
@@ -202,6 +202,6 @@ typedef struct page *pgtable_t;
        (((current->personality & READ_IMPLIES_EXEC) ? VM_EXEC : 0) | \
         VM_READ | VM_WRITE | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
 
-#include <asm-generic/page.h>
+#include <asm-generic/getorder.h>
 
 #endif
index 344f6a8c1f22a9cebe0a86f38c3955e30c0032a5..3ea2016a1d4a344e475d09c1154594e8007d0e94 100644 (file)
@@ -81,7 +81,7 @@ extern unsigned long memory_end;
 #define        virt_addr_valid(kaddr)  (((void *)(kaddr) >= (void *)PAGE_OFFSET) && \
                                ((void *)(kaddr) < (void *)memory_end))
 
-#include <asm-generic/page.h>
+#include <asm-generic/getorder.h>
 
 #endif                         /* __ASSEMBLY__ */
 
index f3fdbd09c34cfe0b7cd62d50487f4460ac668977..be45ee366be922f43dd0a4b6e4e1f8dcc9aa3d25 100644 (file)
@@ -68,7 +68,7 @@ typedef struct page *pgtable_t;
                                 VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
 
 #include <asm-generic/memory_model.h>
-#include <asm-generic/page.h>
+#include <asm-generic/getorder.h>
 
 #endif /* _CRIS_PAGE_H */
 
index bd9c220094c74b288a03dc958f91e1b977dcb57c..25c6a5002355da190f88b90c5d8954b912453a6f 100644 (file)
@@ -73,6 +73,6 @@ extern unsigned long max_pfn;
 #endif /* __ASSEMBLY__ */
 
 #include <asm-generic/memory_model.h>
-#include <asm-generic/page.h>
+#include <asm-generic/getorder.h>
 
 #endif /* _ASM_PAGE_H */
index 0b6acf0b03aa823a884cd8a861666ef9b1a75ecd..837381a2df464d74fb1d156ea65f2215f6835e4f 100644 (file)
@@ -73,6 +73,6 @@ extern unsigned long memory_end;
 #endif /* __ASSEMBLY__ */
 
 #include <asm-generic/memory_model.h>
-#include <asm-generic/page.h>
+#include <asm-generic/getorder.h>
 
 #endif /* _H8300_PAGE_H */
index c9333089fe111e5b0e4878bb4c6cd063d6b9271f..11777f7a5628e7a7324f298ba41cfb01aa10118d 100644 (file)
@@ -82,6 +82,6 @@ typedef struct page *pgtable_t;
 #define devmem_is_allowed(x) 1
 
 #include <asm-generic/memory_model.h>
-#include <asm-generic/page.h>
+#include <asm-generic/getorder.h>
 
 #endif /* _ASM_M32R_PAGE_H */
index a34b8bad784703b1597c5e15e5f655e3a05a7a3e..d009f3ea39abdaf133e06b122a86e4053b44636f 100644 (file)
@@ -223,6 +223,6 @@ static inline __attribute_const__ int __virt_to_node_shift(void)
 #define VM_DATA_DEFAULT_FLAGS  (VM_READ | VM_WRITE | VM_EXEC | \
                                 VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
 
-#include <asm-generic/page.h>
+#include <asm-generic/getorder.h>
 
 #endif /* _M68K_PAGE_H */
index 3a1ede4544cba4815e357a23daafbb07189f59f1..9aa3f90f4855b85ade95e2977cf9422e397d32f6 100644 (file)
@@ -72,6 +72,6 @@ extern unsigned long memory_end;
 
 #endif /* __ASSEMBLY__ */
 
-#include <asm-generic/page.h>
+#include <asm-generic/getorder.h>
 
 #endif /* _M68KNOMMU_PAGE_H */
index 7238dcfcc5174af979475f75013608f1f8558158..962c210e5b9a87f303df2caf17e55c10fa6a6d51 100644 (file)
@@ -135,6 +135,6 @@ extern unsigned int memory_size;
 #endif /* __KERNEL__ */
 
 #include <asm-generic/memory_model.h>
-#include <asm-generic/page.h>
+#include <asm-generic/getorder.h>
 
 #endif /* _ASM_MICROBLAZE_PAGE_H */
index 9f946e4ca0574fbdc3ab376554d7ba7497493fce..72c80d2034c2064022ecfc2136ca8f4931e77d08 100644 (file)
@@ -189,6 +189,6 @@ typedef struct { unsigned long pgprot; } pgprot_t;
 #define CAC_ADDR(addr)         ((addr) - UNCAC_BASE + PAGE_OFFSET)
 
 #include <asm-generic/memory_model.h>
-#include <asm-generic/page.h>
+#include <asm-generic/getorder.h>
 
 #endif /* _ASM_PAGE_H */
index 7bc5125d7d4c9f83a1f7bcd6b4bf980d4fdbaea3..a84cc1f925f63ed22a0b18f28debcb760fe4b528 100644 (file)
@@ -159,6 +159,6 @@ extern int npmem_ranges;
                                 VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
 
 #include <asm-generic/memory_model.h>
-#include <asm-generic/page.h>
+#include <asm-generic/getorder.h>
 
 #endif /* _PARISC_PAGE_H */
index cd4c0b2a8e70bf228a27a47a376afa1aa2ff8d9b..7cf799d70b4c1b5da344895ddc6c055fe8d26686 100644 (file)
@@ -7,7 +7,7 @@
 #include <asm/page.h>
 #include <asm/system.h>
 #include <asm/cache.h>
-#include <asm-generic/uaccess.h>
+#include <asm-generic/uaccess-unaligned.h>
 
 #define VERIFY_READ 0
 #define VERIFY_WRITE 1
index a0e3f6e6b4eeadc2140080843dc35ebeda6c241f..bd0849dbcaaad4c6f87347cf2092a1079581b61e 100644 (file)
@@ -41,7 +41,7 @@ extern void clear_pages(void *page, int order);
 static inline void clear_page(void *page) { clear_pages(page, 0); }
 extern void copy_page(void *to, void *from);
 
-#include <asm-generic/page.h>
+#include <asm-generic/getorder.h>
 
 #define PGD_T_LOG2     (__builtin_ffs(sizeof(pgd_t)) - 1)
 #define PTE_T_LOG2     (__builtin_ffs(sizeof(pte_t)) - 1)
index 043bfdfe4f7379ed90edc7bf5119e25950e159a8..5817a3b747e53c12b516fd8229381b40486cd0e2 100644 (file)
@@ -180,6 +180,6 @@ do {                                                \
        (test_thread_flag(TIF_32BIT) ? \
         VM_STACK_DEFAULT_FLAGS32 : VM_STACK_DEFAULT_FLAGS64)
 
-#include <asm-generic/page.h>
+#include <asm-generic/getorder.h>
 
 #endif /* _ASM_POWERPC_PAGE_64_H */
index 32e8f6aa4384245892a6523943d7819f0c808cb6..3e3594d01f8315f6c5545fd40dbe0d1d521f3de2 100644 (file)
@@ -150,7 +150,7 @@ void arch_alloc_page(struct page *page, int order);
                                 VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
 
 #include <asm-generic/memory_model.h>
-#include <asm-generic/page.h>
+#include <asm-generic/getorder.h>
 
 #define __HAVE_ARCH_GATE_AREA 1
 
index 9c6d21ec0240981f3bc4da574162caebad1feac6..49592c780a6e8d604df09d9ed45edb9728bcbdfc 100644 (file)
@@ -163,7 +163,7 @@ typedef struct page *pgtable_t;
                                 VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
 
 #include <asm-generic/memory_model.h>
-#include <asm-generic/page.h>
+#include <asm-generic/getorder.h>
 
 /* vDSO support */
 #ifdef CONFIG_VSYSCALL
index d1806edc0958b7f81c2b9d38d06a2b9ab71b2c3a..f72080bdda947ec81edce5206842d836755f4521 100644 (file)
@@ -152,6 +152,6 @@ extern unsigned long pfn_base;
                                 VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
 
 #include <asm-generic/memory_model.h>
-#include <asm-generic/page.h>
+#include <asm-generic/getorder.h>
 
 #endif /* _SPARC_PAGE_H */
index 4274ed13ddb2d6209fdc914db7d51f939ad4b06c..f0d09b40103626f7f02d571170935c651f64c470 100644 (file)
@@ -132,6 +132,6 @@ typedef struct page *pgtable_t;
 #define VM_DATA_DEFAULT_FLAGS  (VM_READ | VM_WRITE | VM_EXEC | \
                                 VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
 
-#include <asm-generic/page.h>
+#include <asm-generic/getorder.h>
 
 #endif /* _SPARC64_PAGE_H */
index c64e767a3e4b3821fd906a3132db4cdc579d8f30..a38c03238918ce3659c66e34804398a6a8345786 100644 (file)
@@ -12,7 +12,7 @@
 #include <asm/asi.h>
 #include <asm/system.h>
 #include <asm/spitfire.h>
-#include <asm-generic/uaccess.h>
+#include <asm-generic/uaccess-unaligned.h>
 #endif
 
 #ifndef __ASSEMBLY__
index 55f28a0bae6d3dd99ee7e23eb01ccb546ba446ef..4cc9b6cf480a299dc201791a189babd4362177d4 100644 (file)
@@ -116,7 +116,7 @@ extern unsigned long uml_physmem;
 #define virt_addr_valid(v) pfn_valid(phys_to_pfn(__pa(v)))
 
 #include <asm-generic/memory_model.h>
-#include <asm-generic/page.h>
+#include <asm-generic/getorder.h>
 
 #endif /* __ASSEMBLY__ */
 #endif /* __UM_PAGE_H */
index 89ed9d70b0aa6b65158b22b536677429281ea46b..625c3f0e741aab7bd75d839cadf7084c303baa61 100644 (file)
@@ -56,7 +56,7 @@ extern bool __virt_addr_valid(unsigned long kaddr);
 #endif /* __ASSEMBLY__ */
 
 #include <asm-generic/memory_model.h>
-#include <asm-generic/page.h>
+#include <asm-generic/getorder.h>
 
 #define __HAVE_ARCH_GATE_AREA 1
 
index 17e0c5383b108abb9dac7af627aa00ac1fd343ec..161bb89e98c8b20f8b76f9c194bffa2727fa6cf2 100644 (file)
@@ -129,7 +129,7 @@ static inline __attribute_const__ int get_order(unsigned long size)
 
 #else
 
-# include <asm-generic/page.h>
+# include <asm-generic/getorder.h>
 
 #endif
 
similarity index 59%
rename from include/asm-generic/page.h
rename to include/asm-generic/getorder.h
index 14db733b8e68e7df3cb95bb685eb97cc0125a094..67e7245dc9b39a442fc173be8552193aa0603a5a 100644 (file)
@@ -1,12 +1,12 @@
-#ifndef _ASM_GENERIC_PAGE_H
-#define _ASM_GENERIC_PAGE_H
+#ifndef __ASM_GENERIC_GETORDER_H
+#define __ASM_GENERIC_GETORDER_H
 
 #ifndef __ASSEMBLY__
 
 #include <linux/compiler.h>
 
 /* Pure 2^n version of get_order */
-static __inline__ __attribute_const__ int get_order(unsigned long size)
+static inline __attribute_const__ int get_order(unsigned long size)
 {
        int order;
 
@@ -21,4 +21,4 @@ static __inline__ __attribute_const__ int get_order(unsigned long size)
 
 #endif /* __ASSEMBLY__ */
 
-#endif /* _ASM_GENERIC_PAGE_H */
+#endif /* __ASM_GENERIC_GETORDER_H */
similarity index 82%
rename from include/asm-generic/uaccess.h
rename to include/asm-generic/uaccess-unaligned.h
index 549cb3a1640a5c7d3afba681d68a58cfbcc8664c..67deb898f0c5d939e7e825bc53003f7cfa7455b0 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _ASM_GENERIC_UACCESS_H_
-#define _ASM_GENERIC_UACCESS_H_
+#ifndef __ASM_GENERIC_UACCESS_UNALIGNED_H
+#define __ASM_GENERIC_UACCESS_UNALIGNED_H
 
 /*
  * This macro should be used instead of __get_user() when accessing
@@ -23,4 +23,4 @@
        __copy_to_user((ptr), &__x, sizeof(*(ptr))) ? -EFAULT : 0;      \
 })
 
-#endif /* _ASM_GENERIC_UACCESS_H */
+#endif /* __ASM_GENERIC_UACCESS_UNALIGNED_H */