Skip to content

Commit af941f3

Browse files
author
Claudio Imbrenda
committed
s390: Remove unneeded includes
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 <[email protected]> Reviewed-by: Steffen Eiden <[email protected]> Acked-by: Heiko Carstens <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Claudio Imbrenda <[email protected]> Message-ID: <[email protected]>
1 parent ab73b29 commit af941f3

File tree

8 files changed

+2
-7
lines changed

8 files changed

+2
-7
lines changed

arch/s390/include/asm/tlb.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ static inline bool __tlb_remove_folio_pages(struct mmu_gather *tlb,
3636

3737
#include <asm/tlbflush.h>
3838
#include <asm-generic/tlb.h>
39+
#include <asm/gmap.h>
3940

4041
/*
4142
* Release the page cache reference for a pte removed by

arch/s390/include/asm/uv.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#include <linux/bug.h>
1717
#include <linux/sched.h>
1818
#include <asm/page.h>
19-
#include <asm/gmap.h>
2019
#include <asm/asm.h>
2120

2221
#define UVC_CC_OK 0

arch/s390/kvm/intercept.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <asm/irq.h>
1717
#include <asm/sysinfo.h>
1818
#include <asm/uv.h>
19+
#include <asm/gmap.h>
1920

2021
#include "kvm-s390.h"
2122
#include "gaccess.h"

arch/s390/mm/fault.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
#include <asm/ptrace.h>
4141
#include <asm/fault.h>
4242
#include <asm/diag.h>
43-
#include <asm/gmap.h>
4443
#include <asm/irq.h>
4544
#include <asm/facility.h>
4645
#include <asm/uv.h>

arch/s390/mm/gmap.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#include <asm/machine.h>
2525
#include <asm/gmap.h>
2626
#include <asm/page.h>
27-
#include <asm/tlb.h>
2827

2928
/*
3029
* The address is saved in a radix tree directly; NULL would be ambiguous,

arch/s390/mm/init.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
#include <asm/kfence.h>
4141
#include <asm/dma.h>
4242
#include <asm/abs_lowcore.h>
43-
#include <asm/tlb.h>
4443
#include <asm/tlbflush.h>
4544
#include <asm/sections.h>
4645
#include <asm/sclp.h>

arch/s390/mm/pgalloc.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
#include <asm/mmu_context.h>
1313
#include <asm/page-states.h>
1414
#include <asm/pgalloc.h>
15-
#include <asm/gmap.h>
16-
#include <asm/tlb.h>
1715
#include <asm/tlbflush.h>
1816

1917
unsigned long *crst_table_alloc(struct mm_struct *mm)

arch/s390/mm/pgtable.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include <linux/ksm.h>
2121
#include <linux/mman.h>
2222

23-
#include <asm/tlb.h>
2423
#include <asm/tlbflush.h>
2524
#include <asm/mmu_context.h>
2625
#include <asm/page-states.h>

0 commit comments

Comments
 (0)