memblock: replace free_bootmem{_node} with memblock_free
authorMike Rapoport <[email protected]>
Tue, 30 Oct 2018 22:09:21 +0000 (15:09 -0700)
committerLinus Torvalds <[email protected]>
Wed, 31 Oct 2018 15:54:16 +0000 (08:54 -0700)
commit2013288f723887837d2f1cebef5fcf663b2319de
tree5cf12e95e6889c57987dc984cb634095337a15c0
parent6c7835f8d0d1839ca93bd3cf6faa15706f03d604
memblock: replace free_bootmem{_node} with memblock_free

The free_bootmem and free_bootmem_node are merely wrappers for
memblock_free. Replace their usage with a call to memblock_free using the
following semantic patch:

@@
expression e1, e2, e3;
@@
(
- free_bootmem(e1, e2)
+ memblock_free(e1, e2)
|
- free_bootmem_node(e1, e2, e3)
+ memblock_free(e2, e3)
)

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Mike Rapoport <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: Chris Zankel <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
Cc: Greentime Hu <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Guan Xuetao <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: "James E.J. Bottomley" <[email protected]>
Cc: Jonas Bonn <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: Ley Foon Tan <[email protected]>
Cc: Mark Salter <[email protected]>
Cc: Martin Schwidefsky <[email protected]>
Cc: Matt Turner <[email protected]>
Cc: Michael Ellerman <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Palmer Dabbelt <[email protected]>
Cc: Paul Burton <[email protected]>
Cc: Richard Kuo <[email protected]>
Cc: Richard Weinberger <[email protected]>
Cc: Rich Felker <[email protected]>
Cc: Russell King <[email protected]>
Cc: Serge Semin <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Tony Luck <[email protected]>
Cc: Vineet Gupta <[email protected]>
Cc: Yoshinori Sato <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
15 files changed:
arch/alpha/kernel/core_irongate.c
arch/arm64/mm/init.c
arch/mips/kernel/setup.c
arch/powerpc/kernel/setup_64.c
arch/sparc/kernel/smp_64.c
arch/um/kernel/mem.c
arch/unicore32/mm/init.c
arch/x86/kernel/setup_percpu.c
arch/x86/kernel/tce_64.c
arch/x86/xen/p2m.c
drivers/macintosh/smu.c
drivers/usb/early/xhci-dbc.c
drivers/xen/swiotlb-xen.c
include/linux/bootmem.h
mm/nobootmem.c