Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mm: remove unneeded includes of <asm/pgalloc.h>

Patch series "mm: cleanup usage of <asm/pgalloc.h>"

Most architectures have very similar versions of pXd_alloc_one() and
pXd_free_one() for intermediate levels of page table. These patches add
generic versions of these functions in <asm-generic/pgalloc.h> and enable
use of the generic functions where appropriate.

In addition, functions declared and defined in <asm/pgalloc.h> headers are
used mostly by core mm and early mm initialization in arch and there is no
actual reason to have the <asm/pgalloc.h> included all over the place.
The first patch in this series removes unneeded includes of
<asm/pgalloc.h>

In the end it didn't work out as neatly as I hoped and moving
pXd_alloc_track() definitions to <asm-generic/pgalloc.h> would require
unnecessary changes to arches that have custom page table allocations, so
I've decided to move lib/ioremap.c to mm/ and make pgalloc-track.h local
to mm/.

This patch (of 8):

In most cases <asm/pgalloc.h> header is required only for allocations of
page table memory. Most of the .c files that include that header do not
use symbols declared in <asm/pgalloc.h> and do not require that header.

As for the other header files that used to include <asm/pgalloc.h>, it is
possible to move that include into the .c file that actually uses symbols
from <asm/pgalloc.h> and drop the include from the header file.

The process was somewhat automated using

sed -i -E '/[<"]asm\/pgalloc\.h/d' \
$(grep -L -w -f /tmp/xx \
$(git grep -E -l '[<"]asm/pgalloc\.h'))

where /tmp/xx contains all the symbols defined in
arch/*/include/asm/pgalloc.h.

[rppt@linux.ibm.com: fix powerpc warning]

Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Pekka Enberg <penberg@kernel.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> [m68k]
Cc: Abdul Haleem <abdhalee@linux.vnet.ibm.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: Joerg Roedel <joro@8bytes.org>
Cc: Max Filippov <jcmvbkbc@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Satheesh Rajendran <sathnaga@linux.vnet.ibm.com>
Cc: Stafford Horne <shorne@gmail.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Joerg Roedel <jroedel@suse.de>
Cc: Matthew Wilcox <willy@infradead.org>
Link: http://lkml.kernel.org/r/20200627143453.31835-1-rppt@kernel.org
Link: http://lkml.kernel.org/r/20200627143453.31835-2-rppt@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Mike Rapoport and committed by
Linus Torvalds
ca15ca40 0c4123e3

+17 -118
-1
arch/alpha/include/asm/tlbflush.h
··· 5 5 #include <linux/mm.h> 6 6 #include <linux/sched.h> 7 7 #include <asm/compiler.h> 8 - #include <asm/pgalloc.h> 9 8 10 9 #ifndef __EXTERN_INLINE 11 10 #define __EXTERN_INLINE extern inline
-1
arch/alpha/kernel/core_irongate.c
··· 302 302 #include <linux/agp_backend.h> 303 303 #include <linux/agpgart.h> 304 304 #include <linux/export.h> 305 - #include <asm/pgalloc.h> 306 305 307 306 #define GET_PAGE_DIR_OFF(addr) (addr >> 22) 308 307 #define GET_PAGE_DIR_IDX(addr) (GET_PAGE_DIR_OFF(addr))
-1
arch/alpha/kernel/core_marvel.c
··· 23 23 #include <asm/ptrace.h> 24 24 #include <asm/smp.h> 25 25 #include <asm/gct.h> 26 - #include <asm/pgalloc.h> 27 26 #include <asm/tlbflush.h> 28 27 #include <asm/vga.h> 29 28
-1
arch/alpha/kernel/core_titan.c
··· 20 20 21 21 #include <asm/ptrace.h> 22 22 #include <asm/smp.h> 23 - #include <asm/pgalloc.h> 24 23 #include <asm/tlbflush.h> 25 24 #include <asm/vga.h> 26 25
-2
arch/alpha/kernel/machvec_impl.h
··· 7 7 * This file has goodies to help simplify instantiation of machine vectors. 8 8 */ 9 9 10 - #include <asm/pgalloc.h> 11 - 12 10 /* Whee. These systems don't have an HAE: 13 11 IRONGATE, MARVEL, POLARIS, TSUNAMI, TITAN, WILDFIRE 14 12 Fix things up for the GENERIC kernel by defining the HAE address
-1
arch/alpha/kernel/smp.c
··· 36 36 37 37 #include <asm/io.h> 38 38 #include <asm/irq.h> 39 - #include <asm/pgalloc.h> 40 39 #include <asm/mmu_context.h> 41 40 #include <asm/tlbflush.h> 42 41
-1
arch/alpha/mm/numa.c
··· 17 17 #include <linux/module.h> 18 18 19 19 #include <asm/hwrpb.h> 20 - #include <asm/pgalloc.h> 21 20 #include <asm/sections.h> 22 21 23 22 pg_data_t node_data[MAX_NUMNODES];
-1
arch/arc/mm/fault.c
··· 13 13 #include <linux/kdebug.h> 14 14 #include <linux/perf_event.h> 15 15 #include <linux/mm_types.h> 16 - #include <asm/pgalloc.h> 17 16 #include <asm/mmu.h> 18 17 19 18 /*
-1
arch/arc/mm/init.c
··· 14 14 #include <linux/module.h> 15 15 #include <linux/highmem.h> 16 16 #include <asm/page.h> 17 - #include <asm/pgalloc.h> 18 17 #include <asm/sections.h> 19 18 #include <asm/arcregs.h> 20 19
-1
arch/arm/include/asm/tlb.h
··· 27 27 #else /* !CONFIG_MMU */ 28 28 29 29 #include <linux/swap.h> 30 - #include <asm/pgalloc.h> 31 30 #include <asm/tlbflush.h> 32 31 33 32 static inline void __tlb_remove_table(void *_table)
-1
arch/arm/kernel/machine_kexec.c
··· 11 11 #include <linux/irq.h> 12 12 #include <linux/memblock.h> 13 13 #include <linux/of_fdt.h> 14 - #include <asm/pgalloc.h> 15 14 #include <asm/mmu_context.h> 16 15 #include <asm/cacheflush.h> 17 16 #include <asm/fncpy.h>
-1
arch/arm/kernel/smp.c
··· 37 37 #include <asm/idmap.h> 38 38 #include <asm/topology.h> 39 39 #include <asm/mmu_context.h> 40 - #include <asm/pgalloc.h> 41 40 #include <asm/procinfo.h> 42 41 #include <asm/processor.h> 43 42 #include <asm/sections.h>
-1
arch/arm/kernel/suspend.c
··· 7 7 #include <asm/bugs.h> 8 8 #include <asm/cacheflush.h> 9 9 #include <asm/idmap.h> 10 - #include <asm/pgalloc.h> 11 10 #include <asm/memory.h> 12 11 #include <asm/smp_plat.h> 13 12 #include <asm/suspend.h>
-1
arch/arm/mach-omap2/omap-mpuss-lowpower.c
··· 42 42 #include <asm/cacheflush.h> 43 43 #include <asm/tlbflush.h> 44 44 #include <asm/smp_scu.h> 45 - #include <asm/pgalloc.h> 46 45 #include <asm/suspend.h> 47 46 #include <asm/virt.h> 48 47 #include <asm/hardware/cache-l2x0.h>
-1
arch/arm/mm/hugetlbpage.c
··· 17 17 #include <asm/mman.h> 18 18 #include <asm/tlb.h> 19 19 #include <asm/tlbflush.h> 20 - #include <asm/pgalloc.h> 21 20 22 21 /* 23 22 * On ARM, huge pages are backed by pmd's rather than pte's, so we do a lot
+1
arch/arm/mm/mmu.c
··· 29 29 #include <asm/traps.h> 30 30 #include <asm/procinfo.h> 31 31 #include <asm/memory.h> 32 + #include <asm/pgalloc.h> 32 33 33 34 #include <asm/mach/arch.h> 34 35 #include <asm/mach/map.h>
-1
arch/arm64/kernel/smp.c
··· 43 43 #include <asm/kvm_mmu.h> 44 44 #include <asm/mmu_context.h> 45 45 #include <asm/numa.h> 46 - #include <asm/pgalloc.h> 47 46 #include <asm/processor.h> 48 47 #include <asm/smp_plat.h> 49 48 #include <asm/sections.h>
-1
arch/arm64/mm/hugetlbpage.c
··· 17 17 #include <asm/mman.h> 18 18 #include <asm/tlb.h> 19 19 #include <asm/tlbflush.h> 20 - #include <asm/pgalloc.h> 21 20 22 21 /* 23 22 * HugeTLB Support Matrix
-1
arch/arm64/mm/ioremap.c
··· 16 16 17 17 #include <asm/fixmap.h> 18 18 #include <asm/tlbflush.h> 19 - #include <asm/pgalloc.h> 20 19 21 20 static void __iomem *__ioremap_caller(phys_addr_t phys_addr, size_t size, 22 21 pgprot_t prot, void *caller)
+1
arch/arm64/mm/mmu.c
··· 35 35 #include <asm/mmu_context.h> 36 36 #include <asm/ptdump.h> 37 37 #include <asm/tlbflush.h> 38 + #include <asm/pgalloc.h> 38 39 39 40 #define NO_BLOCK_MAPPINGS BIT(0) 40 41 #define NO_CONT_MAPPINGS BIT(1)
-1
arch/csky/kernel/smp.c
··· 23 23 #include <asm/traps.h> 24 24 #include <asm/sections.h> 25 25 #include <asm/mmu_context.h> 26 - #include <asm/pgalloc.h> 27 26 #ifdef CONFIG_CPU_HAS_FPU 28 27 #include <abi/fpu.h> 29 28 #endif
-1
arch/ia64/include/asm/tlb.h
··· 42 42 #include <linux/pagemap.h> 43 43 #include <linux/swap.h> 44 44 45 - #include <asm/pgalloc.h> 46 45 #include <asm/processor.h> 47 46 #include <asm/tlbflush.h> 48 47
-1
arch/ia64/kernel/process.c
··· 40 40 #include <asm/elf.h> 41 41 #include <asm/irq.h> 42 42 #include <asm/kexec.h> 43 - #include <asm/pgalloc.h> 44 43 #include <asm/processor.h> 45 44 #include <asm/sal.h> 46 45 #include <asm/switch_to.h>
-1
arch/ia64/kernel/smp.c
··· 39 39 #include <asm/io.h> 40 40 #include <asm/irq.h> 41 41 #include <asm/page.h> 42 - #include <asm/pgalloc.h> 43 42 #include <asm/processor.h> 44 43 #include <asm/ptrace.h> 45 44 #include <asm/sal.h>
-1
arch/ia64/kernel/smpboot.c
··· 49 49 #include <asm/irq.h> 50 50 #include <asm/mca.h> 51 51 #include <asm/page.h> 52 - #include <asm/pgalloc.h> 53 52 #include <asm/processor.h> 54 53 #include <asm/ptrace.h> 55 54 #include <asm/sal.h>
-1
arch/ia64/mm/contig.c
··· 21 21 #include <linux/swap.h> 22 22 23 23 #include <asm/meminit.h> 24 - #include <asm/pgalloc.h> 25 24 #include <asm/sections.h> 26 25 #include <asm/mca.h> 27 26
-1
arch/ia64/mm/discontig.c
··· 24 24 #include <linux/efi.h> 25 25 #include <linux/nodemask.h> 26 26 #include <linux/slab.h> 27 - #include <asm/pgalloc.h> 28 27 #include <asm/tlb.h> 29 28 #include <asm/meminit.h> 30 29 #include <asm/numa.h>
-1
arch/ia64/mm/hugetlbpage.c
··· 18 18 #include <linux/sysctl.h> 19 19 #include <linux/log2.h> 20 20 #include <asm/mman.h> 21 - #include <asm/pgalloc.h> 22 21 #include <asm/tlb.h> 23 22 #include <asm/tlbflush.h> 24 23
-1
arch/ia64/mm/tlb.c
··· 27 27 28 28 #include <asm/delay.h> 29 29 #include <asm/mmu_context.h> 30 - #include <asm/pgalloc.h> 31 30 #include <asm/pal.h> 32 31 #include <asm/tlbflush.h> 33 32 #include <asm/dma.h>
+1 -1
arch/m68k/include/asm/mmu_context.h
··· 222 222 223 223 #include <asm/setup.h> 224 224 #include <asm/page.h> 225 - #include <asm/pgalloc.h> 225 + #include <asm/cacheflush.h> 226 226 227 227 static inline int init_new_context(struct task_struct *tsk, 228 228 struct mm_struct *mm)
+1 -1
arch/m68k/kernel/dma.c
··· 15 15 #include <linux/vmalloc.h> 16 16 #include <linux/export.h> 17 17 18 - #include <asm/pgalloc.h> 18 + #include <asm/cacheflush.h> 19 19 20 20 #if defined(CONFIG_MMU) && !defined(CONFIG_COLDFIRE) 21 21 void arch_dma_prep_coherent(struct page *page, size_t size)
+1 -2
arch/m68k/kernel/traps.c
··· 35 35 #include <asm/fpu.h> 36 36 #include <linux/uaccess.h> 37 37 #include <asm/traps.h> 38 - #include <asm/pgalloc.h> 39 38 #include <asm/machdep.h> 40 39 #include <asm/siginfo.h> 41 - 40 + #include <asm/tlbflush.h> 42 41 43 42 static const char *vec_names[] = { 44 43 [VEC_RESETSP] = "RESET SP",
+1 -1
arch/m68k/mm/cache.c
··· 8 8 */ 9 9 10 10 #include <linux/module.h> 11 - #include <asm/pgalloc.h> 11 + #include <asm/cacheflush.h> 12 12 #include <asm/traps.h> 13 13 14 14
-1
arch/m68k/mm/fault.c
··· 15 15 16 16 #include <asm/setup.h> 17 17 #include <asm/traps.h> 18 - #include <asm/pgalloc.h> 19 18 20 19 extern void die_if_kernel(char *, struct pt_regs *, long); 21 20
+1 -1
arch/m68k/mm/kmap.c
··· 19 19 #include <asm/setup.h> 20 20 #include <asm/segment.h> 21 21 #include <asm/page.h> 22 - #include <asm/pgalloc.h> 23 22 #include <asm/io.h> 23 + #include <asm/tlbflush.h> 24 24 25 25 #undef DEBUG 26 26
+1
arch/m68k/mm/mcfmmu.c
··· 20 20 #include <asm/mmu_context.h> 21 21 #include <asm/mcf_pgalloc.h> 22 22 #include <asm/tlbflush.h> 23 + #include <asm/pgalloc.h> 23 24 24 25 #define KMAPAREA(x) ((x >= VMALLOC_START) && (x < KMAP_END)) 25 26
-1
arch/m68k/mm/memory.c
··· 17 17 #include <asm/setup.h> 18 18 #include <asm/segment.h> 19 19 #include <asm/page.h> 20 - #include <asm/pgalloc.h> 21 20 #include <asm/traps.h> 22 21 #include <asm/machdep.h> 23 22
+1 -1
arch/m68k/sun3x/dvma.c
··· 22 22 #include <asm/dvma.h> 23 23 #include <asm/io.h> 24 24 #include <asm/page.h> 25 - #include <asm/pgalloc.h> 25 + #include <asm/tlbflush.h> 26 26 27 27 /* IOMMU support */ 28 28
-1
arch/microblaze/include/asm/tlbflush.h
··· 15 15 #include <asm/processor.h> /* For TASK_SIZE */ 16 16 #include <asm/mmu.h> 17 17 #include <asm/page.h> 18 - #include <asm/pgalloc.h> 19 18 20 19 extern void _tlbie(unsigned long address); 21 20 extern void _tlbia(void);
-1
arch/microblaze/kernel/process.c
··· 18 18 #include <linux/tick.h> 19 19 #include <linux/bitops.h> 20 20 #include <linux/ptrace.h> 21 - #include <asm/pgalloc.h> 22 21 #include <linux/uaccess.h> /* for USER_DS macros */ 23 22 #include <asm/cacheflush.h> 24 23
-1
arch/microblaze/kernel/signal.c
··· 35 35 #include <asm/entry.h> 36 36 #include <asm/ucontext.h> 37 37 #include <linux/uaccess.h> 38 - #include <asm/pgalloc.h> 39 38 #include <linux/syscalls.h> 40 39 #include <asm/cacheflush.h> 41 40 #include <asm/syscalls.h>
-1
arch/mips/sgi-ip32/ip32-memory.c
··· 14 14 #include <asm/ip32/crime.h> 15 15 #include <asm/bootinfo.h> 16 16 #include <asm/page.h> 17 - #include <asm/pgalloc.h> 18 17 19 18 extern void crime_init(void); 20 19
-1
arch/openrisc/include/asm/tlbflush.h
··· 17 17 18 18 #include <linux/mm.h> 19 19 #include <asm/processor.h> 20 - #include <asm/pgalloc.h> 21 20 #include <asm/current.h> 22 21 #include <linux/sched.h> 23 22
-1
arch/openrisc/kernel/or32_ksyms.c
··· 26 26 #include <asm/io.h> 27 27 #include <asm/hardirq.h> 28 28 #include <asm/delay.h> 29 - #include <asm/pgalloc.h> 30 29 31 30 #define DECLARE_EXPORT(name) extern void name(void); EXPORT_SYMBOL(name) 32 31
-1
arch/parisc/include/asm/mmu_context.h
··· 5 5 #include <linux/mm.h> 6 6 #include <linux/sched.h> 7 7 #include <linux/atomic.h> 8 - #include <asm/pgalloc.h> 9 8 #include <asm-generic/mm_hooks.h> 10 9 11 10 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk)
-1
arch/parisc/kernel/cache.c
··· 24 24 #include <asm/cacheflush.h> 25 25 #include <asm/tlbflush.h> 26 26 #include <asm/page.h> 27 - #include <asm/pgalloc.h> 28 27 #include <asm/processor.h> 29 28 #include <asm/sections.h> 30 29 #include <asm/shmparam.h>
-1
arch/parisc/kernel/pci-dma.c
··· 32 32 #include <asm/dma.h> /* for DMA_CHUNK_SIZE */ 33 33 #include <asm/io.h> 34 34 #include <asm/page.h> /* get_order */ 35 - #include <asm/pgalloc.h> 36 35 #include <linux/uaccess.h> 37 36 #include <asm/tlbflush.h> /* for purge_tlb_*() macros */ 38 37
-1
arch/parisc/kernel/process.c
··· 47 47 #include <asm/assembly.h> 48 48 #include <asm/pdc.h> 49 49 #include <asm/pdc_chassis.h> 50 - #include <asm/pgalloc.h> 51 50 #include <asm/unwind.h> 52 51 #include <asm/sections.h> 53 52
-1
arch/parisc/kernel/signal.c
··· 30 30 #include <asm/ucontext.h> 31 31 #include <asm/rt_sigframe.h> 32 32 #include <linux/uaccess.h> 33 - #include <asm/pgalloc.h> 34 33 #include <asm/cacheflush.h> 35 34 #include <asm/asm-offsets.h> 36 35
-1
arch/parisc/kernel/smp.c
··· 39 39 #include <asm/irq.h> /* for CPU_IRQ_REGION and friends */ 40 40 #include <asm/mmu_context.h> 41 41 #include <asm/page.h> 42 - #include <asm/pgalloc.h> 43 42 #include <asm/processor.h> 44 43 #include <asm/ptrace.h> 45 44 #include <asm/unistd.h>
-1
arch/parisc/mm/hugetlbpage.c
··· 15 15 #include <linux/sysctl.h> 16 16 17 17 #include <asm/mman.h> 18 - #include <asm/pgalloc.h> 19 18 #include <asm/tlb.h> 20 19 #include <asm/tlbflush.h> 21 20 #include <asm/cacheflush.h>
+1 -1
arch/parisc/mm/ioremap.c
··· 11 11 #include <linux/errno.h> 12 12 #include <linux/module.h> 13 13 #include <linux/io.h> 14 - #include <asm/pgalloc.h> 14 + #include <linux/mm.h> 15 15 16 16 /* 17 17 * Generic mapping function (not visible outside):
-1
arch/powerpc/include/asm/tlb.h
··· 12 12 #ifndef __powerpc64__ 13 13 #include <linux/pgtable.h> 14 14 #endif 15 - #include <asm/pgalloc.h> 16 15 #ifndef __powerpc64__ 17 16 #include <asm/page.h> 18 17 #include <asm/mmu.h>
-1
arch/powerpc/mm/book3s64/hash_hugetlbpage.c
··· 10 10 11 11 #include <linux/mm.h> 12 12 #include <linux/hugetlb.h> 13 - #include <asm/pgalloc.h> 14 13 #include <asm/cacheflush.h> 15 14 #include <asm/machdep.h> 16 15
-1
arch/powerpc/mm/book3s64/hash_pgtable.c
··· 9 9 #include <linux/mm_types.h> 10 10 #include <linux/mm.h> 11 11 12 - #include <asm/pgalloc.h> 13 12 #include <asm/sections.h> 14 13 #include <asm/mmu.h> 15 14 #include <asm/tlb.h>
-1
arch/powerpc/mm/book3s64/hash_tlb.c
··· 21 21 #include <linux/mm.h> 22 22 #include <linux/percpu.h> 23 23 #include <linux/hardirq.h> 24 - #include <asm/pgalloc.h> 25 24 #include <asm/tlbflush.h> 26 25 #include <asm/tlb.h> 27 26 #include <asm/bug.h>
-1
arch/powerpc/mm/book3s64/radix_hugetlbpage.c
··· 2 2 #include <linux/mm.h> 3 3 #include <linux/hugetlb.h> 4 4 #include <linux/security.h> 5 - #include <asm/pgalloc.h> 6 5 #include <asm/cacheflush.h> 7 6 #include <asm/machdep.h> 8 7 #include <asm/mman.h>
-1
arch/powerpc/mm/init_32.c
··· 29 29 #include <linux/slab.h> 30 30 #include <linux/hugetlb.h> 31 31 32 - #include <asm/pgalloc.h> 33 32 #include <asm/prom.h> 34 33 #include <asm/io.h> 35 34 #include <asm/mmu.h>
-1
arch/powerpc/mm/kasan/8xx.c
··· 5 5 #include <linux/kasan.h> 6 6 #include <linux/memblock.h> 7 7 #include <linux/hugetlb.h> 8 - #include <asm/pgalloc.h> 9 8 10 9 static int __init 11 10 kasan_init_shadow_8M(unsigned long k_start, unsigned long k_end, void *block)
-1
arch/powerpc/mm/kasan/book3s_32.c
··· 4 4 5 5 #include <linux/kasan.h> 6 6 #include <linux/memblock.h> 7 - #include <asm/pgalloc.h> 8 7 #include <mm/mmu_decl.h> 9 8 10 9 int __init kasan_init_region(void *start, size_t size)
-1
arch/powerpc/mm/mem.c
··· 34 34 #include <linux/dma-direct.h> 35 35 #include <linux/kprobes.h> 36 36 37 - #include <asm/pgalloc.h> 38 37 #include <asm/prom.h> 39 38 #include <asm/io.h> 40 39 #include <asm/mmu_context.h>
-1
arch/powerpc/mm/nohash/40x.c
··· 32 32 #include <linux/highmem.h> 33 33 #include <linux/memblock.h> 34 34 35 - #include <asm/pgalloc.h> 36 35 #include <asm/prom.h> 37 36 #include <asm/io.h> 38 37 #include <asm/mmu_context.h>
-1
arch/powerpc/mm/nohash/8xx.c
··· 13 13 #include <asm/fixmap.h> 14 14 #include <asm/code-patching.h> 15 15 #include <asm/inst.h> 16 - #include <asm/pgalloc.h> 17 16 18 17 #include <mm/mmu_decl.h> 19 18
-1
arch/powerpc/mm/nohash/fsl_booke.c
··· 37 37 #include <linux/highmem.h> 38 38 #include <linux/memblock.h> 39 39 40 - #include <asm/pgalloc.h> 41 40 #include <asm/prom.h> 42 41 #include <asm/io.h> 43 42 #include <asm/mmu_context.h>
-1
arch/powerpc/mm/nohash/kaslr_booke.c
··· 15 15 #include <linux/libfdt.h> 16 16 #include <linux/crash_core.h> 17 17 #include <asm/cacheflush.h> 18 - #include <asm/pgalloc.h> 19 18 #include <asm/prom.h> 20 19 #include <asm/kdump.h> 21 20 #include <mm/mmu_decl.h>
+1
arch/powerpc/mm/nohash/tlb.c
··· 34 34 #include <linux/of_fdt.h> 35 35 #include <linux/hugetlb.h> 36 36 37 + #include <asm/pgalloc.h> 37 38 #include <asm/tlbflush.h> 38 39 #include <asm/tlb.h> 39 40 #include <asm/code-patching.h>
-1
arch/powerpc/mm/pgtable.c
··· 23 23 #include <linux/percpu.h> 24 24 #include <linux/hardirq.h> 25 25 #include <linux/hugetlb.h> 26 - #include <asm/pgalloc.h> 27 26 #include <asm/tlbflush.h> 28 27 #include <asm/tlb.h> 29 28 #include <asm/hugetlb.h>
-1
arch/powerpc/mm/pgtable_64.c
··· 31 31 #include <linux/slab.h> 32 32 #include <linux/hugetlb.h> 33 33 34 - #include <asm/pgalloc.h> 35 34 #include <asm/page.h> 36 35 #include <asm/prom.h> 37 36 #include <asm/mmu_context.h>
+1 -1
arch/powerpc/mm/ptdump/hashpagetable.c
··· 17 17 #include <linux/seq_file.h> 18 18 #include <linux/const.h> 19 19 #include <asm/page.h> 20 - #include <asm/pgalloc.h> 21 20 #include <asm/plpar_wrappers.h> 22 21 #include <linux/memblock.h> 23 22 #include <asm/firmware.h> 23 + #include <asm/pgalloc.h> 24 24 25 25 struct pg_state { 26 26 struct seq_file *seq;
-1
arch/powerpc/mm/ptdump/ptdump.c
··· 21 21 #include <asm/fixmap.h> 22 22 #include <linux/const.h> 23 23 #include <asm/page.h> 24 - #include <asm/pgalloc.h> 25 24 #include <asm/hugetlb.h> 26 25 27 26 #include <mm/mmu_decl.h>
-1
arch/powerpc/platforms/pseries/cmm.c
··· 26 26 #include <asm/firmware.h> 27 27 #include <asm/hvcall.h> 28 28 #include <asm/mmu.h> 29 - #include <asm/pgalloc.h> 30 29 #include <linux/uaccess.h> 31 30 #include <linux/memory.h> 32 31 #include <asm/plpar_wrappers.h>
-1
arch/riscv/mm/fault.c
··· 14 14 #include <linux/signal.h> 15 15 #include <linux/uaccess.h> 16 16 17 - #include <asm/pgalloc.h> 18 17 #include <asm/ptrace.h> 19 18 #include <asm/tlbflush.h> 20 19
-1
arch/s390/include/asm/tlb.h
··· 36 36 #define p4d_free_tlb p4d_free_tlb 37 37 #define pud_free_tlb pud_free_tlb 38 38 39 - #include <asm/pgalloc.h> 40 39 #include <asm/tlbflush.h> 41 40 #include <asm-generic/tlb.h> 42 41
-1
arch/s390/include/asm/tlbflush.h
··· 5 5 #include <linux/mm.h> 6 6 #include <linux/sched.h> 7 7 #include <asm/processor.h> 8 - #include <asm/pgalloc.h> 9 8 10 9 /* 11 10 * Flush all TLB entries on the local CPU.
-1
arch/s390/kernel/machine_kexec.c
··· 16 16 #include <linux/debug_locks.h> 17 17 #include <asm/cio.h> 18 18 #include <asm/setup.h> 19 - #include <asm/pgalloc.h> 20 19 #include <asm/smp.h> 21 20 #include <asm/ipl.h> 22 21 #include <asm/diag.h>
-1
arch/s390/kernel/ptrace.c
··· 25 25 #include <linux/compat.h> 26 26 #include <trace/syscall.h> 27 27 #include <asm/page.h> 28 - #include <asm/pgalloc.h> 29 28 #include <linux/uaccess.h> 30 29 #include <asm/unistd.h> 31 30 #include <asm/switch_to.h>
-1
arch/s390/kvm/diag.c
··· 10 10 11 11 #include <linux/kvm.h> 12 12 #include <linux/kvm_host.h> 13 - #include <asm/pgalloc.h> 14 13 #include <asm/gmap.h> 15 14 #include <asm/virtio-ccw.h> 16 15 #include "kvm-s390.h"
-1
arch/s390/kvm/priv.c
··· 22 22 #include <asm/ebcdic.h> 23 23 #include <asm/sysinfo.h> 24 24 #include <asm/page-states.h> 25 - #include <asm/pgalloc.h> 26 25 #include <asm/gmap.h> 27 26 #include <asm/io.h> 28 27 #include <asm/ptrace.h>
-1
arch/s390/kvm/pv.c
··· 9 9 #include <linux/kvm_host.h> 10 10 #include <linux/pagemap.h> 11 11 #include <linux/sched/signal.h> 12 - #include <asm/pgalloc.h> 13 12 #include <asm/gmap.h> 14 13 #include <asm/uv.h> 15 14 #include <asm/mman.h>
-1
arch/s390/mm/cmm.c
··· 21 21 #include <linux/oom.h> 22 22 #include <linux/uaccess.h> 23 23 24 - #include <asm/pgalloc.h> 25 24 #include <asm/diag.h> 26 25 27 26 #ifdef CONFIG_CMM_IUCV
-1
arch/s390/mm/mmap.c
··· 17 17 #include <linux/random.h> 18 18 #include <linux/compat.h> 19 19 #include <linux/security.h> 20 - #include <asm/pgalloc.h> 21 20 #include <asm/elf.h> 22 21 23 22 static unsigned long stack_maxrandom_size(void)
-1
arch/s390/mm/pgtable.c
··· 19 19 #include <linux/ksm.h> 20 20 #include <linux/mman.h> 21 21 22 - #include <asm/pgalloc.h> 23 22 #include <asm/tlb.h> 24 23 #include <asm/tlbflush.h> 25 24 #include <asm/mmu_context.h>
-1
arch/sh/kernel/idle.c
··· 14 14 #include <linux/irqflags.h> 15 15 #include <linux/smp.h> 16 16 #include <linux/atomic.h> 17 - #include <asm/pgalloc.h> 18 17 #include <asm/smp.h> 19 18 #include <asm/bl_bit.h> 20 19
-1
arch/sh/kernel/machine_kexec.c
··· 14 14 #include <linux/ftrace.h> 15 15 #include <linux/suspend.h> 16 16 #include <linux/memblock.h> 17 - #include <asm/pgalloc.h> 18 17 #include <asm/mmu_context.h> 19 18 #include <asm/io.h> 20 19 #include <asm/cacheflush.h>
-1
arch/sh/mm/cache-sh3.c
··· 16 16 #include <asm/cache.h> 17 17 #include <asm/io.h> 18 18 #include <linux/uaccess.h> 19 - #include <asm/pgalloc.h> 20 19 #include <asm/mmu_context.h> 21 20 #include <asm/cacheflush.h> 22 21
-1
arch/sh/mm/cache-sh7705.c
··· 20 20 #include <asm/cache.h> 21 21 #include <asm/io.h> 22 22 #include <linux/uaccess.h> 23 - #include <asm/pgalloc.h> 24 23 #include <asm/mmu_context.h> 25 24 #include <asm/cacheflush.h> 26 25
-1
arch/sh/mm/hugetlbpage.c
··· 17 17 #include <linux/sysctl.h> 18 18 19 19 #include <asm/mman.h> 20 - #include <asm/pgalloc.h> 21 20 #include <asm/tlb.h> 22 21 #include <asm/tlbflush.h> 23 22 #include <asm/cacheflush.h>
+1
arch/sh/mm/init.c
··· 27 27 #include <asm/sections.h> 28 28 #include <asm/setup.h> 29 29 #include <asm/cache.h> 30 + #include <asm/pgalloc.h> 30 31 #include <linux/sizes.h> 31 32 32 33 pgd_t swapper_pg_dir[PTRS_PER_PGD];
-1
arch/sh/mm/ioremap_fixed.c
··· 18 18 #include <linux/proc_fs.h> 19 19 #include <asm/fixmap.h> 20 20 #include <asm/page.h> 21 - #include <asm/pgalloc.h> 22 21 #include <asm/addrspace.h> 23 22 #include <asm/cacheflush.h> 24 23 #include <asm/tlbflush.h>
-1
arch/sh/mm/tlb-sh3.c
··· 21 21 22 22 #include <asm/io.h> 23 23 #include <linux/uaccess.h> 24 - #include <asm/pgalloc.h> 25 24 #include <asm/mmu_context.h> 26 25 #include <asm/cacheflush.h> 27 26
-1
arch/sparc/include/asm/ide.h
··· 13 13 14 14 #include <asm/io.h> 15 15 #ifdef CONFIG_SPARC64 16 - #include <asm/pgalloc.h> 17 16 #include <asm/spitfire.h> 18 17 #include <asm/cacheflush.h> 19 18 #include <asm/page.h>
-1
arch/sparc/include/asm/tlb_64.h
··· 4 4 5 5 #include <linux/swap.h> 6 6 #include <linux/pagemap.h> 7 - #include <asm/pgalloc.h> 8 7 #include <asm/tlbflush.h> 9 8 #include <asm/mmu_context.h> 10 9
-1
arch/sparc/kernel/leon_smp.c
··· 38 38 #include <asm/delay.h> 39 39 #include <asm/irq.h> 40 40 #include <asm/page.h> 41 - #include <asm/pgalloc.h> 42 41 #include <asm/oplib.h> 43 42 #include <asm/cpudata.h> 44 43 #include <asm/asi.h>
-1
arch/sparc/kernel/process_32.c
··· 34 34 #include <asm/oplib.h> 35 35 #include <linux/uaccess.h> 36 36 #include <asm/page.h> 37 - #include <asm/pgalloc.h> 38 37 #include <asm/delay.h> 39 38 #include <asm/processor.h> 40 39 #include <asm/psr.h>
-1
arch/sparc/kernel/signal_32.c
··· 23 23 24 24 #include <linux/uaccess.h> 25 25 #include <asm/ptrace.h> 26 - #include <asm/pgalloc.h> 27 26 #include <asm/cacheflush.h> /* flush_sig_insns */ 28 27 #include <asm/switch_to.h> 29 28
-1
arch/sparc/kernel/smp_32.c
··· 29 29 30 30 #include <asm/irq.h> 31 31 #include <asm/page.h> 32 - #include <asm/pgalloc.h> 33 32 #include <asm/oplib.h> 34 33 #include <asm/cacheflush.h> 35 34 #include <asm/tlbflush.h>
+1
arch/sparc/kernel/smp_64.c
··· 47 47 #include <linux/uaccess.h> 48 48 #include <asm/starfire.h> 49 49 #include <asm/tlb.h> 50 + #include <asm/pgalloc.h> 50 51 #include <asm/sections.h> 51 52 #include <asm/prom.h> 52 53 #include <asm/mdesc.h>
-1
arch/sparc/kernel/sun4m_irq.c
··· 16 16 17 17 #include <asm/timer.h> 18 18 #include <asm/traps.h> 19 - #include <asm/pgalloc.h> 20 19 #include <asm/irq.h> 21 20 #include <asm/io.h> 22 21 #include <asm/cacheflush.h>
-1
arch/sparc/mm/highmem.c
··· 29 29 30 30 #include <asm/cacheflush.h> 31 31 #include <asm/tlbflush.h> 32 - #include <asm/pgalloc.h> 33 32 #include <asm/vaddrs.h> 34 33 35 34 static pte_t *kmap_pte;
-1
arch/sparc/mm/io-unit.c
··· 15 15 #include <linux/of.h> 16 16 #include <linux/of_device.h> 17 17 18 - #include <asm/pgalloc.h> 19 18 #include <asm/io.h> 20 19 #include <asm/io-unit.h> 21 20 #include <asm/mxcc.h>
-1
arch/sparc/mm/iommu.c
··· 16 16 #include <linux/of.h> 17 17 #include <linux/of_device.h> 18 18 19 - #include <asm/pgalloc.h> 20 19 #include <asm/io.h> 21 20 #include <asm/mxcc.h> 22 21 #include <asm/mbus.h>
-1
arch/sparc/mm/tlb.c
··· 10 10 #include <linux/swap.h> 11 11 #include <linux/preempt.h> 12 12 13 - #include <asm/pgalloc.h> 14 13 #include <asm/tlbflush.h> 15 14 #include <asm/cacheflush.h> 16 15 #include <asm/mmu_context.h>
-1
arch/x86/ia32/ia32_aout.c
··· 30 30 #include <linux/sched/task_stack.h> 31 31 32 32 #include <linux/uaccess.h> 33 - #include <asm/pgalloc.h> 34 33 #include <asm/cacheflush.h> 35 34 #include <asm/user32.h> 36 35 #include <asm/ia32.h>
-1
arch/x86/include/asm/mmu_context.h
··· 9 9 10 10 #include <trace/events/tlb.h> 11 11 12 - #include <asm/pgalloc.h> 13 12 #include <asm/tlbflush.h> 14 13 #include <asm/paravirt.h> 15 14 #include <asm/debugreg.h>
+1
arch/x86/kernel/alternative.c
··· 7 7 #include <linux/mutex.h> 8 8 #include <linux/list.h> 9 9 #include <linux/stringify.h> 10 + #include <linux/highmem.h> 10 11 #include <linux/mm.h> 11 12 #include <linux/vmalloc.h> 12 13 #include <linux/memory.h>
-1
arch/x86/kernel/apic/apic.c
··· 40 40 #include <asm/irq_remapping.h> 41 41 #include <asm/perf_event.h> 42 42 #include <asm/x86_init.h> 43 - #include <asm/pgalloc.h> 44 43 #include <linux/atomic.h> 45 44 #include <asm/mpspec.h> 46 45 #include <asm/i8259.h>
-1
arch/x86/kernel/mpparse.c
··· 22 22 #include <asm/irqdomain.h> 23 23 #include <asm/mtrr.h> 24 24 #include <asm/mpspec.h> 25 - #include <asm/pgalloc.h> 26 25 #include <asm/io_apic.h> 27 26 #include <asm/proto.h> 28 27 #include <asm/bios_ebda.h>
-1
arch/x86/kernel/traps.c
··· 62 62 63 63 #ifdef CONFIG_X86_64 64 64 #include <asm/x86_init.h> 65 - #include <asm/pgalloc.h> 66 65 #include <asm/proto.h> 67 66 #else 68 67 #include <asm/processor-flags.h>
-1
arch/x86/mm/fault.c
··· 21 21 22 22 #include <asm/cpufeature.h> /* boot_cpu_has, ... */ 23 23 #include <asm/traps.h> /* dotraplinkage, ... */ 24 - #include <asm/pgalloc.h> /* pgd_*(), ... */ 25 24 #include <asm/fixmap.h> /* VSYSCALL_ADDR */ 26 25 #include <asm/vsyscall.h> /* emulate_vsyscall */ 27 26 #include <asm/vm86.h> /* struct vm86 */
-1
arch/x86/mm/hugetlbpage.c
··· 17 17 #include <asm/mman.h> 18 18 #include <asm/tlb.h> 19 19 #include <asm/tlbflush.h> 20 - #include <asm/pgalloc.h> 21 20 #include <asm/elf.h> 22 21 23 22 #if 0 /* This is just for testing */
-1
arch/x86/mm/kaslr.c
··· 26 26 #include <linux/memblock.h> 27 27 #include <linux/pgtable.h> 28 28 29 - #include <asm/pgalloc.h> 30 29 #include <asm/setup.h> 31 30 #include <asm/kaslr.h> 32 31
-1
arch/x86/mm/pgtable_32.c
··· 11 11 #include <linux/spinlock.h> 12 12 13 13 #include <asm/cpu_entry_area.h> 14 - #include <asm/pgalloc.h> 15 14 #include <asm/fixmap.h> 16 15 #include <asm/e820/api.h> 17 16 #include <asm/tlb.h>
-1
arch/x86/mm/pti.c
··· 34 34 #include <asm/vsyscall.h> 35 35 #include <asm/cmdline.h> 36 36 #include <asm/pti.h> 37 - #include <asm/pgalloc.h> 38 37 #include <asm/tlbflush.h> 39 38 #include <asm/desc.h> 40 39 #include <asm/sections.h>
+1
arch/x86/platform/uv/bios_uv.c
··· 11 11 #include <linux/slab.h> 12 12 #include <asm/efi.h> 13 13 #include <linux/io.h> 14 + #include <asm/pgalloc.h> 14 15 #include <asm/uv/bios.h> 15 16 #include <asm/uv/uv_hub.h> 16 17
-1
arch/xtensa/kernel/xtensa_ksyms.c
··· 25 25 #include <asm/dma.h> 26 26 #include <asm/io.h> 27 27 #include <asm/page.h> 28 - #include <asm/pgalloc.h> 29 28 #include <asm/ftrace.h> 30 29 #ifdef CONFIG_BLK_DEV_FD 31 30 #include <asm/floppy.h>
-1
arch/xtensa/mm/cache.c
··· 31 31 #include <asm/tlb.h> 32 32 #include <asm/tlbflush.h> 33 33 #include <asm/page.h> 34 - #include <asm/pgalloc.h> 35 34 36 35 /* 37 36 * Note:
-1
arch/xtensa/mm/fault.c
··· 20 20 #include <asm/mmu_context.h> 21 21 #include <asm/cacheflush.h> 22 22 #include <asm/hardirq.h> 23 - #include <asm/pgalloc.h> 24 23 25 24 DEFINE_PER_CPU(unsigned long, asid_cache) = ASID_USER_FIRST; 26 25 void bad_page_fault(struct pt_regs*, unsigned long, int);
-1
drivers/block/xen-blkback/common.h
··· 36 36 #include <linux/io.h> 37 37 #include <linux/rbtree.h> 38 38 #include <asm/setup.h> 39 - #include <asm/pgalloc.h> 40 39 #include <asm/hypervisor.h> 41 40 #include <xen/grant_table.h> 42 41 #include <xen/page.h>
-1
drivers/iommu/ipmmu-vmsa.c
··· 28 28 29 29 #if defined(CONFIG_ARM) && !defined(CONFIG_IOMMU_DMA) 30 30 #include <asm/dma-iommu.h> 31 - #include <asm/pgalloc.h> 32 31 #else 33 32 #define arm_iommu_create_mapping(...) NULL 34 33 #define arm_iommu_attach_device(...) -ENODEV
-1
drivers/xen/balloon.c
··· 58 58 #include <linux/sysctl.h> 59 59 60 60 #include <asm/page.h> 61 - #include <asm/pgalloc.h> 62 61 #include <asm/tlb.h> 63 62 64 63 #include <asm/xen/hypervisor.h>
-1
drivers/xen/privcmd.c
··· 25 25 #include <linux/miscdevice.h> 26 26 #include <linux/moduleparam.h> 27 27 28 - #include <asm/pgalloc.h> 29 28 #include <asm/xen/hypervisor.h> 30 29 #include <asm/xen/hypercall.h> 31 30
-1
fs/binfmt_elf_fdpic.c
··· 38 38 39 39 #include <linux/uaccess.h> 40 40 #include <asm/param.h> 41 - #include <asm/pgalloc.h> 42 41 43 42 typedef char *elf_caddr_t; 44 43
-1
include/asm-generic/tlb.h
··· 14 14 #include <linux/mmu_notifier.h> 15 15 #include <linux/swap.h> 16 16 #include <linux/hugetlb_inline.h> 17 - #include <asm/pgalloc.h> 18 17 #include <asm/tlbflush.h> 19 18 #include <asm/cacheflush.h> 20 19
+1
mm/hugetlb.c
··· 31 31 #include <linux/cma.h> 32 32 33 33 #include <asm/page.h> 34 + #include <asm/pgalloc.h> 34 35 #include <asm/tlb.h> 35 36 36 37 #include <linux/io.h>
-1
mm/sparse.c
··· 16 16 17 17 #include "internal.h" 18 18 #include <asm/dma.h> 19 - #include <asm/pgalloc.h> 20 19 21 20 /* 22 21 * Permanent SPARSEMEM data: