linux_dsm_epyc7002/arch/arm/mach-omap2
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
..
include/mach
.gitignore
am33xx-restart.c
am33xx.h
board-generic.c
board-n8x0.c
clkt2xxx_dpll.c
clkt2xxx_dpllcore.c
clkt2xxx_virt_prcm_set.c
clock2xxx.h
clock3xxx.h
clock.c
clock.h
clockdomain.c
clockdomain.h
clockdomains2xxx_3xxx_data.c
clockdomains3xxx_data.c
clockdomains7xx_data.c
clockdomains33xx_data.c
clockdomains43xx_data.c
clockdomains44xx_data.c
clockdomains54xx_data.c
clockdomains81xx_data.c
clockdomains2420_data.c
clockdomains2430_data.c
cm1_7xx.h
cm1_44xx.h
cm1_54xx.h
cm2_7xx.h
cm2_44xx.h
cm2_54xx.h
cm2xxx_3xxx.h
cm2xxx.c
cm2xxx.h
cm3xxx.c
cm3xxx.h
cm33xx.c
cm33xx.h
cm44xx.h
cm81xx.h
cm_common.c
cm-regbits-7xx.h
cm-regbits-24xx.h
cm-regbits-33xx.h
cm-regbits-34xx.h
cm-regbits-44xx.h
cm-regbits-54xx.h
cm.h
cminst44xx.c
common-board-devices.h
common.c
common.h
control.c
control.h
cpuidle34xx.c
cpuidle44xx.c
ctrl_module_wkup_44xx.h
devices.c
display.c
display.h
dma.c
fb.c
gpmc.h
hdq1w.c
hdq1w.h
i2c.c
i2c.h
id.c ARM: OMAP2: Use custom soc attribute group instead of device_create_file 2020-07-06 09:48:06 +01:00
id.h
io.c
iomap.h
Kconfig
l3_2xxx.h
l3_3xxx.h
l4_2xxx.h
l4_3xxx.h
Makefile
mcbsp.c
mmc.h arch: arm: mach-omap2: mmc: Move omap_mmc_notify_cover_event() prototype 2020-07-13 12:18:26 +02:00
msdi.c
omap2-restart.c
omap3-restart.c
omap4-common.c
omap4-restart.c
omap4-sar-layout.h
omap24xx.h
omap34xx.h
omap44xx.h
omap54xx.h
omap_device.c
omap_device.h
omap_hwmod_2xxx_3xxx_ipblock_data.c
omap_hwmod_2xxx_interconnect_data.c
omap_hwmod_2xxx_ipblock_data.c
omap_hwmod_3xxx_data.c ARM: dts: omap3: Migrate AES from hwmods to sysc-omap2 2020-06-29 10:22:47 -07:00
omap_hwmod_7xx_data.c ARM: OMAP2+: Drop legacy platform data for dra7 dwc3 2020-07-14 08:41:18 -07:00
omap_hwmod_33xx_43xx_common_data.h
omap_hwmod_33xx_43xx_interconnect_data.c
omap_hwmod_33xx_43xx_ipblock_data.c
omap_hwmod_33xx_data.c
omap_hwmod_43xx_data.c ARM: OMAP2+: Drop legacy platform data for am4 dwc3 2020-07-13 09:59:48 -07:00
omap_hwmod_44xx_data.c ARM: OMAP2+: Drop legacy platform data for omap4 usb 2020-07-14 08:41:18 -07:00
omap_hwmod_54xx_data.c ARM: OMAP2+: Drop legacy platform data for omap5 usb host 2020-07-14 08:41:18 -07:00
omap_hwmod_81xx_data.c
omap_hwmod_2420_data.c
omap_hwmod_2430_data.c
omap_hwmod_common_data.c
omap_hwmod_common_data.h
omap_hwmod_common_ipblock_data.c
omap_hwmod_reset.c
omap_hwmod.c ARM: OMAP2+: Fix possible memory leak in omap_hwmod_allocate_module 2020-07-14 08:03:05 -07:00
omap_hwmod.h
omap_opp_data.h
omap_phy_internal.c
omap_twl.c
omap-headsmp.S
omap-hotplug.c
omap-iommu.c
omap-mpuss-lowpower.c mm: remove unneeded includes of <asm/pgalloc.h> 2020-08-07 11:33:26 -07:00
omap-secure.c
omap-secure.h
omap-smc.S
omap-smp.c
omap-wakeupgen.c
omap-wakeupgen.h
opp2xxx.h
opp3xxx_data.c
opp4xxx_data.c
opp2420_data.c
opp2430_data.c
pdata-quirks.c
pm24xx.c
pm33xx-core.c
pm34xx.c
pm44xx.c
pm-asm-offsets.c
pm-debug.c
pm.c
pm.h
pmic-cpcap.c
powerdomain-common.c
powerdomain.c
powerdomain.h
powerdomains2xxx_3xxx_data.c
powerdomains2xxx_3xxx_data.h
powerdomains2xxx_data.c
powerdomains3xxx_data.c
powerdomains7xx_data.c
powerdomains33xx_data.c
powerdomains43xx_data.c
powerdomains44xx_data.c
powerdomains54xx_data.c
prcm43xx.h
prcm44xx.h
prcm_mpu7xx.h
prcm_mpu44xx.c
prcm_mpu44xx.h
prcm_mpu54xx.h
prcm_mpu_44xx_54xx.h
prcm-common.h
prm2xxx_3xxx.c
prm2xxx_3xxx.h
prm2xxx.c
prm2xxx.h
prm3xxx.c
prm3xxx.h
prm7xx.h
prm33xx.c
prm33xx.h
prm44xx_54xx.h
prm44xx.c
prm44xx.h
prm54xx.h
prm_common.c
prm-regbits-24xx.h
prm-regbits-33xx.h
prm-regbits-34xx.h
prm-regbits-44xx.h
prm.h
prminst44xx.c
prminst44xx.h
scrm44xx.h
scrm54xx.h
sdrc2xxx.c
sdrc.c
sdrc.h
serial.h
sleep24xx.S
sleep33xx.S
sleep34xx.S
sleep43xx.S
sleep44xx.S
smartreflex-class3.c
soc.h
sr_device.c
sram242x.S
sram243x.S
sram.c
sram.h
ti81xx-restart.c
ti81xx.h
timer.c
usb-tusb6010.c
usb.h
vc3xxx_data.c
vc44xx_data.c
vc.c
vc.h
voltage.c
voltage.h
voltagedomains2xxx_data.c
voltagedomains3xxx_data.c
voltagedomains44xx_data.c
voltagedomains54xx_data.c
vp3xxx_data.c
vp44xx_data.c
vp.c
vp.h
wd_timer.c
wd_timer.h