]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
memblock: rename memblock_free to memblock_phys_free
authorMike Rapoport <rppt@linux.ibm.com>
Fri, 5 Nov 2021 20:43:19 +0000 (13:43 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 6 Nov 2021 20:30:41 +0000 (13:30 -0700)
commit3ecc68349bbab6bff1d12cbc7951ca6019b2faf6
tree6a2e48f9c7722d2a296de88fa6b881dd48829d2c
parent621d973901cf9fa6c6e31b31bdd36c5c5f3c9c9e
memblock: rename memblock_free to memblock_phys_free

Since memblock_free() operates on a physical range, make its name
reflect it and rename it to memblock_phys_free(), so it will be a
logical counterpart to memblock_phys_alloc().

The callers are updated with the below semantic patch:

    @@
    expression addr;
    expression size;
    @@
    - memblock_free(addr, size);
    + memblock_phys_free(addr, size);

Link: https://lkml.kernel.org/r/20210930185031.18648-6-rppt@kernel.org
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: Juergen Gross <jgross@suse.com>
Cc: Shahab Vahedi <Shahab.Vahedi@synopsys.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
45 files changed:
arch/alpha/kernel/core_irongate.c
arch/arc/mm/init.c
arch/arm/mach-hisi/platmcpm.c
arch/arm/mm/init.c
arch/arm64/mm/mmu.c
arch/mips/mm/init.c
arch/mips/sgi-ip30/ip30-setup.c
arch/powerpc/kernel/dt_cpu_ftrs.c
arch/powerpc/kernel/paca.c
arch/powerpc/kernel/setup-common.c
arch/powerpc/kernel/setup_64.c
arch/powerpc/platforms/powernv/pci-ioda.c
arch/powerpc/platforms/pseries/svm.c
arch/riscv/kernel/setup.c
arch/s390/kernel/setup.c
arch/s390/kernel/smp.c
arch/s390/kernel/uv.c
arch/s390/mm/kasan_init.c
arch/sh/boards/mach-ap325rxa/setup.c
arch/sh/boards/mach-ecovec24/setup.c
arch/sh/boards/mach-kfr2r09/setup.c
arch/sh/boards/mach-migor/setup.c
arch/sh/boards/mach-se/7724/setup.c
arch/sparc/kernel/smp_64.c
arch/um/kernel/mem.c
arch/x86/kernel/setup.c
arch/x86/mm/init.c
arch/x86/xen/mmu_pv.c
arch/x86/xen/setup.c
drivers/base/arch_numa.c
drivers/firmware/efi/memmap.c
drivers/of/kexec.c
drivers/of/of_reserved_mem.c
drivers/s390/char/sclp_early.c
drivers/usb/early/xhci-dbc.c
drivers/xen/swiotlb-xen.c
include/linux/memblock.h
init/initramfs.c
kernel/dma/swiotlb.c
lib/cpumask.c
mm/cma.c
mm/memblock.c
mm/memory_hotplug.c
mm/percpu.c
mm/sparse.c