Skip to content

Commit 7d60b02

Browse files
committed
powerpc/mm: Fix misplaced #endif in pgtable-ppc64-64k.h
A misplaced #endif causes more definitions than intended to be protected by #ifndef __ASSEMBLY__. This breaks upcoming 64-bit BookE support patch when using 64k pages. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
1 parent dd90bbd commit 7d60b02

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎arch/powerpc/include/asm/pgtable-ppc64-64k.h‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
#define PGD_INDEX_SIZE 4
1111

1212
#ifndef __ASSEMBLY__
13-
1413
#define PTE_TABLE_SIZE (sizeof(real_pte_t) << PTE_INDEX_SIZE)
1514
#define PMD_TABLE_SIZE (sizeof(pmd_t) << PMD_INDEX_SIZE)
1615
#define PGD_TABLE_SIZE (sizeof(pgd_t) << PGD_INDEX_SIZE)
16+
#endif /* __ASSEMBLY__ */
1717

1818
#define PTRS_PER_PTE (1 << PTE_INDEX_SIZE)
1919
#define PTRS_PER_PMD (1 << PMD_INDEX_SIZE)
@@ -32,8 +32,6 @@
3232
#define PGDIR_SIZE (1UL << PGDIR_SHIFT)
3333
#define PGDIR_MASK (~(PGDIR_SIZE-1))
3434

35-
#endif /* __ASSEMBLY__ */
36-
3735
/* Bits to mask out from a PMD to get to the PTE page */
3836
#define PMD_MASKED_BITS 0x1ff
3937
/* Bits to mask out from a PGD/PUD to get to the PMD page */

0 commit comments

Comments
 (0)