s390: Remove unneeded includes
authorClaudio Imbrenda <imbrenda@linux.ibm.com>
Wed, 28 May 2025 09:54:59 +0000 (11:54 +0200)
committerClaudio Imbrenda <imbrenda@linux.ibm.com>
Wed, 28 May 2025 15:48:04 +0000 (17:48 +0200)
Many files don't need to include asm/tlb.h or asm/gmap.h.
On the other hand, asm/tlb.h does need to include asm/gmap.h.

Remove all unneeded includes so that asm/tlb.h is not directly used by
s390 arch code anymore. Remove asm/gmap.h from a few other files as
well, so that now only KVM code, mm/gmap.c, and asm/tlb.h include it.

Reviewed-by: Christoph Schlameuss <schlameuss@linux.ibm.com>
Reviewed-by: Steffen Eiden <seiden@linux.ibm.com>
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Link: https://lore.kernel.org/r/20250528095502.226213-2-imbrenda@linux.ibm.com
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Message-ID: <20250528095502.226213-2-imbrenda@linux.ibm.com>

arch/s390/include/asm/tlb.h
arch/s390/include/asm/uv.h
arch/s390/kvm/intercept.c
arch/s390/mm/fault.c
arch/s390/mm/gmap.c
arch/s390/mm/init.c
arch/s390/mm/pgalloc.c
arch/s390/mm/pgtable.c

index f20601995bb0e6c6acdfc24689a7409f0102c210..56d5f9e0eb2e9fbd706e3f3709191c6708c9a761 100644 (file)
@@ -36,6 +36,7 @@ static inline bool __tlb_remove_folio_pages(struct mmu_gather *tlb,
 
 #include <asm/tlbflush.h>
 #include <asm-generic/tlb.h>
+#include <asm/gmap.h>
 
 /*
  * Release the page cache reference for a pte removed by
index 46fb0ef6f984709d97940ce79e655a70cbac0f88..eeb2db4783e64b25625400c5ffa2b75e6d2cac67 100644 (file)
@@ -16,7 +16,6 @@
 #include <linux/bug.h>
 #include <linux/sched.h>
 #include <asm/page.h>
-#include <asm/gmap.h>
 #include <asm/asm.h>
 
 #define UVC_CC_OK      0
index a06a000f196ce0066bfd21b0d914492a1796819a..b4834bd4d21666f2080233eb8ba8f4ef4527976a 100644 (file)
@@ -16,6 +16,7 @@
 #include <asm/irq.h>
 #include <asm/sysinfo.h>
 #include <asm/uv.h>
+#include <asm/gmap.h>
 
 #include "kvm-s390.h"
 #include "gaccess.h"
index da84ff6770decaa197fc28e4332c7d81cd686197..3829521450ddeff364fe583b63b54ff8f2156ee8 100644 (file)
@@ -40,7 +40,6 @@
 #include <asm/ptrace.h>
 #include <asm/fault.h>
 #include <asm/diag.h>
-#include <asm/gmap.h>
 #include <asm/irq.h>
 #include <asm/facility.h>
 #include <asm/uv.h>
index a94bd4870c656ac5bb90573fe572110336bb658b..4869555ff4037d655ad84ed8a2b7dbfb9b748027 100644 (file)
@@ -24,7 +24,6 @@
 #include <asm/machine.h>
 #include <asm/gmap.h>
 #include <asm/page.h>
-#include <asm/tlb.h>
 
 /*
  * The address is saved in a radix tree directly; NULL would be ambiguous,
index afa085e8186ca761f1815cf86cd012cbf7468532..074bf4fb4ce2a7a738fe844fbabaeaea96b8aff6 100644 (file)
@@ -40,7 +40,6 @@
 #include <asm/kfence.h>
 #include <asm/dma.h>
 #include <asm/abs_lowcore.h>
-#include <asm/tlb.h>
 #include <asm/tlbflush.h>
 #include <asm/sections.h>
 #include <asm/sclp.h>
index e3a6f8ae156cd623e11d5dbfe879fa423b3f1029..ddab36875370d1378f0328f25a0c20021efa6a9f 100644 (file)
@@ -12,8 +12,6 @@
 #include <asm/mmu_context.h>
 #include <asm/page-states.h>
 #include <asm/pgalloc.h>
-#include <asm/gmap.h>
-#include <asm/tlb.h>
 #include <asm/tlbflush.h>
 
 unsigned long *crst_table_alloc(struct mm_struct *mm)
index 9901934284ec86339914ec2fa5ae79337926e8b0..7df70cd8f739ce0f96d5df86718675a128316d39 100644 (file)
@@ -20,7 +20,6 @@
 #include <linux/ksm.h>
 #include <linux/mman.h>
 
-#include <asm/tlb.h>
 #include <asm/tlbflush.h>
 #include <asm/mmu_context.h>
 #include <asm/page-states.h>