]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
powerpc: get rid of PMD_PAGE_SIZE() and _PMD_SIZE
authorChristophe Leroy <christophe.leroy@c-s.fr>
Wed, 16 May 2018 06:58:57 +0000 (08:58 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 17 May 2018 14:09:03 +0000 (00:09 +1000)
PMD_PAGE_SIZE() is nowhere used and _PMD_SIZE is only
used by PMD_PAGE_SIZE().

This patch removes them.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/nohash/32/pte-40x.h
arch/powerpc/include/asm/pte-common.h

index 124f9ac23a1e6906779ed0744d43969260852caf..bb4b3a4b92a07cfa950e8cb7d6659ff07e4af026 100644 (file)
 
 #define _PMD_PRESENT   0x400   /* PMD points to page of PTEs */
 #define _PMD_BAD       0x802
-#define _PMD_SIZE      0x0e0   /* size field, != 0 for large-page PMD entry */
 #define _PMD_SIZE_4M   0x0c0
 #define _PMD_SIZE_16M  0x0e0
 
-#define PMD_PAGE_SIZE(pmdval)  (1024 << (((pmdval) & _PMD_SIZE) >> 4))
-
 /* Until my rework is finished, 40x still needs atomic PTE updates */
 #define PTE_ATOMIC_UPDATES     1
 
index c4a72c7a8c831749faa89b7be71cad1573b218c9..050b0d77532457c914af540f55255b5afe81471d 100644 (file)
 #ifndef _PMD_PRESENT_MASK
 #define _PMD_PRESENT_MASK      _PMD_PRESENT
 #endif
-#ifndef _PMD_SIZE
-#define _PMD_SIZE      0
-#define PMD_PAGE_SIZE(pmd)     bad_call_to_PMD_PAGE_SIZE()
-#endif
 #ifndef _PMD_USER
 #define _PMD_USER      0
 #endif
 #define _PTE_NONE_MASK _PAGE_HPTEFLAGS
 #endif
 
-/* Make sure we get a link error if PMD_PAGE_SIZE is ever called on a
- * kernel without large page PMD support
- */
 #ifndef __ASSEMBLY__
-extern unsigned long bad_call_to_PMD_PAGE_SIZE(void);
 
 /*
  * Don't just check for any non zero bits in __PAGE_USER, since for book3e