Skip to content

Commit e66c320

Browse files
chleroympe
authored andcommitted
powerpc: Move page table dump files in a dedicated subdirectory
This patch moves the files related to page table dump in a dedicated subdirectory. The purpose is to clean a bit arch/powerpc/mm by regrouping multiple files handling a dedicated function. Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> [mpe: Shorten the file names while we're at it] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent cabe813 commit e66c320

11 files changed

Lines changed: 14 additions & 17 deletions

File tree

‎arch/powerpc/Kconfig.debug‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -361,10 +361,6 @@ config PPC_PTDUMP
361361

362362
If you are unsure, say N.
363363

364-
config PPC_HTDUMP
365-
def_bool y
366-
depends on PPC_PTDUMP && PPC_BOOK3S_64
367-
368364
config PPC_FAST_ENDIAN_SWITCH
369365
bool "Deprecated fast endian-switch syscall"
370366
depends on DEBUG_KERNEL && PPC_BOOK3S_64

‎arch/powerpc/mm/Makefile‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,5 @@ obj-$(CONFIG_NOT_COHERENT_CACHE) += dma-noncoherent.o
4545
obj-$(CONFIG_HIGHMEM) += highmem.o
4646
obj-$(CONFIG_PPC_COPRO_BASE) += copro_fault.o
4747
obj-$(CONFIG_SPAPR_TCE_IOMMU) += mmu_context_iommu.o
48-
obj-$(CONFIG_PPC_PTDUMP) += dump_linuxpagetables.o
49-
ifdef CONFIG_PPC_PTDUMP
50-
obj-$(CONFIG_4xx) += dump_linuxpagetables-generic.o
51-
obj-$(CONFIG_PPC_8xx) += dump_linuxpagetables-8xx.o
52-
obj-$(CONFIG_PPC_BOOK3E_MMU) += dump_linuxpagetables-generic.o
53-
obj-$(CONFIG_PPC_BOOK3S_32) += dump_linuxpagetables-generic.o dump_bats.o dump_sr.o
54-
obj-$(CONFIG_PPC_BOOK3S_64) += dump_linuxpagetables-book3s64.o
55-
endif
56-
obj-$(CONFIG_PPC_HTDUMP) += dump_hashpagetable.o
48+
obj-$(CONFIG_PPC_PTDUMP) += ptdump/
5749
obj-$(CONFIG_PPC_MEM_KEYS) += pkeys.o

arch/powerpc/mm/dump_linuxpagetables-8xx.c renamed to arch/powerpc/mm/ptdump/8xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <linux/kernel.h>
88
#include <asm/pgtable.h>
99

10-
#include "dump_linuxpagetables.h"
10+
#include "ptdump.h"
1111

1212
static const struct flag_info flag_array[] = {
1313
{

‎arch/powerpc/mm/ptdump/Makefile‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
3+
obj-y += ptdump.o
4+
5+
obj-$(CONFIG_4xx) += shared.o
6+
obj-$(CONFIG_PPC_8xx) += 8xx.o
7+
obj-$(CONFIG_PPC_BOOK3E_MMU) += shared.o
8+
obj-$(CONFIG_PPC_BOOK3S_32) += shared.o bats.o segment_regs.o
9+
obj-$(CONFIG_PPC_BOOK3S_64) += book3s64.o hashpagetable.o

arch/powerpc/mm/dump_linuxpagetables-book3s64.c renamed to arch/powerpc/mm/ptdump/book3s64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <linux/kernel.h>
88
#include <asm/pgtable.h>
99

10-
#include "dump_linuxpagetables.h"
10+
#include "ptdump.h"
1111

1212
static const struct flag_info flag_array[] = {
1313
{
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#include <asm/page.h>
2929
#include <asm/pgalloc.h>
3030

31-
#include "dump_linuxpagetables.h"
31+
#include "ptdump.h"
3232

3333
#ifdef CONFIG_PPC32
3434
#define KERN_VIRT_START 0

0 commit comments

Comments
 (0)