]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
PAGE_PTR() had been last used outside of arch/* in 1.1.94
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 2 Feb 2023 18:17:47 +0000 (13:17 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 13 Sep 2025 19:15:07 +0000 (15:15 -0400)
.. 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>
arch/alpha/include/asm/pgtable.h
arch/m68k/include/asm/pgtable_mm.h
arch/openrisc/include/asm/pgtable.h

index 44e7aedac6e87e9b390fd711ff985d1a235d93d8..ae2bdbeec91ce5ae190c714136173101b8fbcc7b 100644 (file)
@@ -141,19 +141,6 @@ extern unsigned long __zero_page(void);
 #define BAD_PAGE       __bad_page()
 #define ZERO_PAGE(vaddr)       (virt_to_page(ZERO_PGE))
 
-/* number of bits that fit into a memory pointer */
-#define BITS_PER_PTR                   (8*sizeof(unsigned long))
-
-/* to align the pointer to a pointer address */
-#define PTR_MASK                       (~(sizeof(void*)-1))
-
-/* sizeof(void*)==1<<SIZEOF_PTR_LOG2 */
-#define SIZEOF_PTR_LOG2                        3
-
-/* to find an entry in a page-table */
-#define PAGE_PTR(address)              \
-  ((unsigned long)(address)>>(PAGE_SHIFT-SIZEOF_PTR_LOG2)&PTR_MASK&~PAGE_MASK)
-
 /*
  * On certain platforms whose physical address space can overlap KSEG,
  * namely EV6 and above, we must re-twiddle the physaddr to restore the
index 62f2ff4e6799b03830af3a67d99084175a8c7df7..bba64a9c49acd0de4e4b7a1d63f3e89060f394e2 100644 (file)
@@ -119,16 +119,6 @@ extern void *empty_zero_page;
  */
 #define ZERO_PAGE(vaddr)       (virt_to_page(empty_zero_page))
 
-/* number of bits that fit into a memory pointer */
-#define BITS_PER_PTR                   (8*sizeof(unsigned long))
-
-/* to align the pointer to a pointer address */
-#define PTR_MASK                       (~(sizeof(void*)-1))
-
-/* sizeof(void*)==1<<SIZEOF_PTR_LOG2 */
-/* 64-bit machines, beware!  SRB. */
-#define SIZEOF_PTR_LOG2                               2
-
 extern void kernel_set_cachemode(void *addr, unsigned long size, int cmode);
 
 /*
index d33702831505e7cafaa8b2bcd6e3abb1c6cf95be..138f46fc838bbc46674dc09f03f7542762c35d44 100644 (file)
@@ -183,20 +183,6 @@ extern void paging_init(void);
 extern unsigned long empty_zero_page[2048];
 #define ZERO_PAGE(vaddr) (virt_to_page(empty_zero_page))
 
-/* number of bits that fit into a memory pointer */
-#define BITS_PER_PTR                   (8*sizeof(unsigned long))
-
-/* to align the pointer to a pointer address */
-#define PTR_MASK                       (~(sizeof(void *)-1))
-
-/* sizeof(void*)==1<<SIZEOF_PTR_LOG2 */
-/* 64-bit machines, beware!  SRB. */
-#define SIZEOF_PTR_LOG2                        2
-
-/* to find an entry in a page-table */
-#define PAGE_PTR(address) \
-((unsigned long)(address)>>(PAGE_SHIFT-SIZEOF_PTR_LOG2)&PTR_MASK&~PAGE_MASK)
-
 /* to set the page-dir */
 #define SET_PAGE_DIR(tsk, pgdir)