linux-xiaomi-chiron/arch/s390/include/asm
Mike Rapoport ca15ca406f 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>
2020-08-07 11:33:26 -07:00
..
fpu
trace
airq.h
alternative-asm.h
alternative.h
ap.h
appldata.h
archrandom.h
asm-const.h s390/kernel: unify EX_TABLE* implementations 2020-07-20 10:55:45 +02:00
asm-prototypes.h
atomic.h locking/atomic: Move ATOMIC_INIT into linux/types.h 2020-07-29 16:14:18 +02:00
atomic_ops.h
barrier.h
bitops.h
boot_data.h
bug.h printk: Make linux/printk.h self-contained 2020-07-27 17:46:24 +09:00
bugs.h
cache.h
ccwdev.h s390/cio, s390/qeth: cleanup PNSO CHSC 2020-05-28 12:21:55 +02:00
ccwgroup.h s390/net: remove pm ops from ccwgroup drivers 2020-05-19 12:48:39 -07:00
checksum.h take the dummy csum_and_copy_from_user() into net/checksum.h 2020-05-29 16:11:50 -04:00
chpid.h
chsc.h s390/cio, s390/qeth: cleanup PNSO CHSC 2020-05-28 12:21:55 +02:00
cio.h
clp.h
cmb.h
cmpxchg.h
compat.h
cpacf.h
cpcmd.h
cpu.h
cpu_mcf.h
cpu_mf-insn.h
cpu_mf.h
cpufeature.h
cputime.h
crw.h
css_chars.h
ctl_reg.h
current.h
debug.h s390/debug: remove struct __debug_entry from uapi 2020-06-29 16:32:25 +02:00
delay.h
diag.h s390/setup: diag 318: refactor struct 2020-06-23 09:16:48 +02:00
dis.h
dma.h
dwarf.h
eadm.h
ebcdic.h
elf.h
exec.h
extable.h s390/kernel: expand exception table logic to allow new handling options 2020-07-20 10:55:50 +02:00
extmem.h
facility.h
fcx.h
ftrace.h
futex.h [parisc, s390, sparc64] no need for access_ok() in futex handling 2020-03-27 23:58:52 -04:00
gmap.h KVM: s390/mm: Make pages accessible before destroying the guest 2020-02-27 19:47:11 +01:00
hardirq.h
hugetlb.h mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
hw_irq.h s390/irq: make init_ext_interrupts static 2020-03-11 14:18:44 +01:00
idals.h
idle.h
io.h s390/pci: ioremap() align with generic code 2020-05-20 10:22:52 +02:00
ipl.h s390: nvme ipl 2020-05-06 15:19:35 +02:00
irq.h
irqflags.h
isc.h
itcw.h
jump_label.h
kasan.h mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
Kbuild KVM: Move x86's version of struct kvm_mmu_memory_cache to common code 2020-07-09 13:29:42 -04:00
kdebug.h
kexec.h
kprobes.h
kvm_host.h KVM: s390: Enhancement for 5.9 2020-08-03 14:19:13 -04:00
kvm_para.h
linkage.h s390/kernel: expand exception table logic to allow new handling options 2020-07-20 10:55:50 +02:00
livepatch.h
lowcore.h s390: prevent leaking kernel address in BEAR 2020-03-10 15:16:25 +01:00
mem_detect.h
mem_encrypt.h
mmu.h s390 updates for the 5.7 merge window 2020-04-04 09:45:50 -07:00
mmu_context.h s390 updates for the 5.7 merge window 2020-04-04 09:45:50 -07:00
mmzone.h
module.h
nmi.h s390: remove critical section cleanup from entry.S 2020-05-28 12:21:54 +02:00
nospec-branch.h
nospec-insn.h
numa.h s390/mm: remove fake numa support 2020-02-27 16:02:21 +01:00
os_info.h
page-states.h
page.h mm/vma: define a default value for VM_DATA_DEFAULT_FLAGS 2020-04-10 15:36:21 -07:00
pci.h s390/pci: create links between PFs and VFs 2020-05-20 10:22:51 +02:00
pci_clp.h s390/pci: create links between PFs and VFs 2020-05-20 10:22:51 +02:00
pci_debug.h
pci_dma.h s390/pci: remove unused functions 2020-06-29 16:32:09 +02:00
pci_insn.h
pci_io.h s390/pci: Fix s390_mmio_read/write with MIO 2020-05-14 23:21:37 +02:00
percpu.h
perf_event.h
pgalloc.h s390/mm: cleanup init_new_context() callback 2020-03-28 12:46:12 +01:00
pgtable.h s390/vmem: get rid of memory segment list 2020-07-01 20:00:49 +02:00
pkey.h
pnet.h
preempt.h
processor.h s390: remove critical section cleanup from entry.S 2020-05-28 12:21:54 +02:00
ptrace.h s390: enable HAVE_FUNCTION_ERROR_INJECTION 2020-07-27 10:33:28 +02:00
purgatory.h
qdio.h s390/cio, s390/qeth: cleanup PNSO CHSC 2020-05-28 12:21:55 +02:00
runtime_instr.h
schid.h
sclp.h
scsw.h
seccomp.h
sections.h
serial.h
set_memory.h
setup.h s390: prevent leaking kernel address in BEAR 2020-03-10 15:16:25 +01:00
shmparam.h
signal.h
sigp.h
smp.h These were the main changes in this cycle: 2020-08-03 14:39:35 -07:00
sparsemem.h
spinlock.h
spinlock_types.h
stacktrace.h
stp.h
string.h
switch_to.h
syscall.h s390: fix syscall_get_error for compat processes 2020-06-17 23:05:05 +02:00
syscall_wrapper.h s390: enable HAVE_FUNCTION_ERROR_INJECTION 2020-07-27 10:33:28 +02:00
sysinfo.h
termios.h
thread_info.h s390: Break cyclic percpu include 2020-07-10 12:00:02 +02:00
timex.h s390/time: remove unused function 2020-06-29 16:32:14 +02:00
tlb.h mm: remove unneeded includes of <asm/pgalloc.h> 2020-08-07 11:33:26 -07:00
tlbflush.h mm: remove unneeded includes of <asm/pgalloc.h> 2020-08-07 11:33:26 -07:00
topology.h s390/cpuinfo: show number of online cores 2020-03-23 13:41:54 +01:00
uaccess.h s390: Change s390_kernel_write() return type to match memcpy() 2020-05-08 00:12:43 +02:00
unistd.h
unwind.h
uprobes.h
user.h
uv.h KVM: s390: protvirt: Add UV cpu reset calls 2020-02-27 19:47:12 +01:00
vdso.h s390/vdso: fix vDSO clock_getres() 2020-06-16 13:44:05 +02:00
vga.h
vmalloc.h
vmlinux.lds.h
vtime.h
vtimer.h
vx-insn.h
xor.h