Skip to content

Commit 5279821

Browse files
chleroympe
authored andcommitted
powerpc: get rid of PMD_PAGE_SIZE() and _PMD_SIZE
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 <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
1 parent 9dcb3df commit 5279821

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

arch/powerpc/include/asm/nohash/32/pte-40x.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,9 @@
5252

5353
#define _PMD_PRESENT 0x400 /* PMD points to page of PTEs */
5454
#define _PMD_BAD 0x802
55-
#define _PMD_SIZE 0x0e0 /* size field, != 0 for large-page PMD entry */
5655
#define _PMD_SIZE_4M 0x0c0
5756
#define _PMD_SIZE_16M 0x0e0
5857

59-
#define PMD_PAGE_SIZE(pmdval) (1024 << (((pmdval) & _PMD_SIZE) >> 4))
60-
6158
/* Until my rework is finished, 40x still needs atomic PTE updates */
6259
#define PTE_ATOMIC_UPDATES 1
6360

arch/powerpc/include/asm/pte-common.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@
6060
#ifndef _PMD_PRESENT_MASK
6161
#define _PMD_PRESENT_MASK _PMD_PRESENT
6262
#endif
63-
#ifndef _PMD_SIZE
64-
#define _PMD_SIZE 0
65-
#define PMD_PAGE_SIZE(pmd) bad_call_to_PMD_PAGE_SIZE()
66-
#endif
6763
#ifndef _PMD_USER
6864
#define _PMD_USER 0
6965
#endif
@@ -88,11 +84,7 @@
8884
#define _PTE_NONE_MASK _PAGE_HPTEFLAGS
8985
#endif
9086

91-
/* Make sure we get a link error if PMD_PAGE_SIZE is ever called on a
92-
* kernel without large page PMD support
93-
*/
9487
#ifndef __ASSEMBLY__
95-
extern unsigned long bad_call_to_PMD_PAGE_SIZE(void);
9688

9789
/*
9890
* Don't just check for any non zero bits in __PAGE_USER, since for book3e

0 commit comments

Comments
 (0)