]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
powerpc: Move page table dump files in a dedicated subdirectory
authorChristophe Leroy <christophe.leroy@c-s.fr>
Mon, 18 Feb 2019 12:28:36 +0000 (12:28 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 22 Feb 2019 11:29:22 +0000 (22:29 +1100)
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>
arch/powerpc/Kconfig.debug
arch/powerpc/mm/Makefile
arch/powerpc/mm/ptdump/8xx.c [moved from arch/powerpc/mm/dump_linuxpagetables-8xx.c with 97% similarity]
arch/powerpc/mm/ptdump/Makefile [new file with mode: 0644]
arch/powerpc/mm/ptdump/bats.c [moved from arch/powerpc/mm/dump_bats.c with 100% similarity]
arch/powerpc/mm/ptdump/book3s64.c [moved from arch/powerpc/mm/dump_linuxpagetables-book3s64.c with 98% similarity]
arch/powerpc/mm/ptdump/hashpagetable.c [moved from arch/powerpc/mm/dump_hashpagetable.c with 100% similarity]
arch/powerpc/mm/ptdump/ptdump.c [moved from arch/powerpc/mm/dump_linuxpagetables.c with 99% similarity]
arch/powerpc/mm/ptdump/ptdump.h [moved from arch/powerpc/mm/dump_linuxpagetables.h with 100% similarity]
arch/powerpc/mm/ptdump/segment_regs.c [moved from arch/powerpc/mm/dump_sr.c with 100% similarity]
arch/powerpc/mm/ptdump/shared.c [moved from arch/powerpc/mm/dump_linuxpagetables-generic.c with 97% similarity]

index f4961fbcb48d5458a6400a83d0b173fbd6d474fa..4e00cb0a54646706f7485900847fdbacf9a5dec5 100644 (file)
@@ -361,10 +361,6 @@ config PPC_PTDUMP
 
          If you are unsure, say N.
 
-config PPC_HTDUMP
-       def_bool y
-       depends on PPC_PTDUMP && PPC_BOOK3S_64
-
 config PPC_FAST_ENDIAN_SWITCH
        bool "Deprecated fast endian-switch syscall"
         depends on DEBUG_KERNEL && PPC_BOOK3S_64
index f965fc33a8b77ce47714c3a57fc8ccd12deae11e..ee1efa3b3382689285ff4e8cce09025d1a280bc0 100644 (file)
@@ -45,13 +45,5 @@ obj-$(CONFIG_NOT_COHERENT_CACHE) += dma-noncoherent.o
 obj-$(CONFIG_HIGHMEM)          += highmem.o
 obj-$(CONFIG_PPC_COPRO_BASE)   += copro_fault.o
 obj-$(CONFIG_SPAPR_TCE_IOMMU)  += mmu_context_iommu.o
-obj-$(CONFIG_PPC_PTDUMP)       += dump_linuxpagetables.o
-ifdef CONFIG_PPC_PTDUMP
-obj-$(CONFIG_4xx)              += dump_linuxpagetables-generic.o
-obj-$(CONFIG_PPC_8xx)          += dump_linuxpagetables-8xx.o
-obj-$(CONFIG_PPC_BOOK3E_MMU)   += dump_linuxpagetables-generic.o
-obj-$(CONFIG_PPC_BOOK3S_32)    += dump_linuxpagetables-generic.o dump_bats.o dump_sr.o
-obj-$(CONFIG_PPC_BOOK3S_64)    += dump_linuxpagetables-book3s64.o
-endif
-obj-$(CONFIG_PPC_HTDUMP)       += dump_hashpagetable.o
+obj-$(CONFIG_PPC_PTDUMP)       += ptdump/
 obj-$(CONFIG_PPC_MEM_KEYS)     += pkeys.o
similarity index 97%
rename from arch/powerpc/mm/dump_linuxpagetables-8xx.c
rename to arch/powerpc/mm/ptdump/8xx.c
index ab9e3f24db2f419b9615c78b0762fed0063121c6..9e2d8e847d6e874a9b8d3d16fb5220ff326afd07 100644 (file)
@@ -7,7 +7,7 @@
 #include <linux/kernel.h>
 #include <asm/pgtable.h>
 
-#include "dump_linuxpagetables.h"
+#include "ptdump.h"
 
 static const struct flag_info flag_array[] = {
        {
diff --git a/arch/powerpc/mm/ptdump/Makefile b/arch/powerpc/mm/ptdump/Makefile
new file mode 100644 (file)
index 0000000..712762b
--- /dev/null
@@ -0,0 +1,9 @@
+# SPDX-License-Identifier: GPL-2.0
+
+obj-y  += ptdump.o
+
+obj-$(CONFIG_4xx)              += shared.o
+obj-$(CONFIG_PPC_8xx)          += 8xx.o
+obj-$(CONFIG_PPC_BOOK3E_MMU)   += shared.o
+obj-$(CONFIG_PPC_BOOK3S_32)    += shared.o bats.o segment_regs.o
+obj-$(CONFIG_PPC_BOOK3S_64)    += book3s64.o hashpagetable.o
similarity index 98%
rename from arch/powerpc/mm/dump_linuxpagetables-book3s64.c
rename to arch/powerpc/mm/ptdump/book3s64.c
index ed6fcf78256eb5fa9e5a9933a8a086a005055437..0dfca72cb9bd5d4a858a5445ba6d9c9b94881711 100644 (file)
@@ -7,7 +7,7 @@
 #include <linux/kernel.h>
 #include <asm/pgtable.h>
 
-#include "dump_linuxpagetables.h"
+#include "ptdump.h"
 
 static const struct flag_info flag_array[] = {
        {
similarity index 99%
rename from arch/powerpc/mm/dump_linuxpagetables.c
rename to arch/powerpc/mm/ptdump/ptdump.c
index b0da447197d4b7d43ca98d4bd0afd7a693876fba..37138428ab5585d42a82a2d78e6e74705431619d 100644 (file)
@@ -28,7 +28,7 @@
 #include <asm/page.h>
 #include <asm/pgalloc.h>
 
-#include "dump_linuxpagetables.h"
+#include "ptdump.h"
 
 #ifdef CONFIG_PPC32
 #define KERN_VIRT_START        0
similarity index 97%
rename from arch/powerpc/mm/dump_linuxpagetables-generic.c
rename to arch/powerpc/mm/ptdump/shared.c
index 3fe98a0974c62065720bc91de2adf57b2de0834c..f7ed2f187cb01acb307020cdd515f957ff76f6bc 100644 (file)
@@ -7,7 +7,7 @@
 #include <linux/kernel.h>
 #include <asm/pgtable.h>
 
-#include "dump_linuxpagetables.h"
+#include "ptdump.h"
 
 static const struct flag_info flag_array[] = {
        {