Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PAGE_PTR() had been last used outside of arch/* in 1.1.94

.. and in arch/* - circa 2.2.7.

Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org> # m68k
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> # m68k
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 4d364c66 9892775a

-37
-13
arch/alpha/include/asm/pgtable.h
··· 141 141 #define BAD_PAGE __bad_page() 142 142 #define ZERO_PAGE(vaddr) (virt_to_page(ZERO_PGE)) 143 143 144 - /* number of bits that fit into a memory pointer */ 145 - #define BITS_PER_PTR (8*sizeof(unsigned long)) 146 - 147 - /* to align the pointer to a pointer address */ 148 - #define PTR_MASK (~(sizeof(void*)-1)) 149 - 150 - /* sizeof(void*)==1<<SIZEOF_PTR_LOG2 */ 151 - #define SIZEOF_PTR_LOG2 3 152 - 153 - /* to find an entry in a page-table */ 154 - #define PAGE_PTR(address) \ 155 - ((unsigned long)(address)>>(PAGE_SHIFT-SIZEOF_PTR_LOG2)&PTR_MASK&~PAGE_MASK) 156 - 157 144 /* 158 145 * On certain platforms whose physical address space can overlap KSEG, 159 146 * namely EV6 and above, we must re-twiddle the physaddr to restore the
-10
arch/m68k/include/asm/pgtable_mm.h
··· 119 119 */ 120 120 #define ZERO_PAGE(vaddr) (virt_to_page(empty_zero_page)) 121 121 122 - /* number of bits that fit into a memory pointer */ 123 - #define BITS_PER_PTR (8*sizeof(unsigned long)) 124 - 125 - /* to align the pointer to a pointer address */ 126 - #define PTR_MASK (~(sizeof(void*)-1)) 127 - 128 - /* sizeof(void*)==1<<SIZEOF_PTR_LOG2 */ 129 - /* 64-bit machines, beware! SRB. */ 130 - #define SIZEOF_PTR_LOG2 2 131 - 132 122 extern void kernel_set_cachemode(void *addr, unsigned long size, int cmode); 133 123 134 124 /*
-14
arch/openrisc/include/asm/pgtable.h
··· 183 183 extern unsigned long empty_zero_page[2048]; 184 184 #define ZERO_PAGE(vaddr) (virt_to_page(empty_zero_page)) 185 185 186 - /* number of bits that fit into a memory pointer */ 187 - #define BITS_PER_PTR (8*sizeof(unsigned long)) 188 - 189 - /* to align the pointer to a pointer address */ 190 - #define PTR_MASK (~(sizeof(void *)-1)) 191 - 192 - /* sizeof(void*)==1<<SIZEOF_PTR_LOG2 */ 193 - /* 64-bit machines, beware! SRB. */ 194 - #define SIZEOF_PTR_LOG2 2 195 - 196 - /* to find an entry in a page-table */ 197 - #define PAGE_PTR(address) \ 198 - ((unsigned long)(address)>>(PAGE_SHIFT-SIZEOF_PTR_LOG2)&PTR_MASK&~PAGE_MASK) 199 - 200 186 /* to set the page-dir */ 201 187 #define SET_PAGE_DIR(tsk, pgdir) 202 188