linux-next/arch
Mike Rapoport 4421cca0a3 memblock: use memblock_free for freeing virtual pointers
Rename memblock_free_ptr() to memblock_free() and use memblock_free()
when freeing a virtual pointer so that memblock_free() will be a
counterpart of memblock_alloc()

The callers are updated with the below semantic patch and manual
addition of (void *) casting to pointers that are represented by
unsigned long variables.

    @@
    identifier vaddr;
    expression size;
    @@
    (
    - memblock_phys_free(__pa(vaddr), size);
    + memblock_free(vaddr, size);
    |
    - memblock_free_ptr(vaddr, size);
    + memblock_free(vaddr, size);
    )

[sfr@canb.auug.org.au: fixup]
  Link: https://lkml.kernel.org/r/20211018192940.3d1d532f@canb.auug.org.au

Link: https://lkml.kernel.org/r/20210930185031.18648-7-rppt@kernel.org
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
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>
2021-11-06 13:30:41 -07:00
..
alpha memblock: use memblock_free for freeing virtual pointers 2021-11-06 13:30:41 -07:00
arc memblock: rename memblock_free to memblock_phys_free 2021-11-06 13:30:41 -07:00
arm memblock: rename memblock_free to memblock_phys_free 2021-11-06 13:30:41 -07:00
arm64 memblock: rename memblock_free to memblock_phys_free 2021-11-06 13:30:41 -07:00
csky csky: Make HAVE_TCM depend on !COMPILE_TEST 2021-10-16 07:20:12 +08:00
h8300 Merge branch 'akpm' (patches from Andrew) 2021-09-08 12:55:35 -07:00
hexagon Merge branch 'akpm' (patches from Andrew) 2021-09-08 12:55:35 -07:00
ia64 firmware: include drivers/firmware/Kconfig unconditionally 2021-10-07 16:51:26 +02:00
m68k m68k: Remove set_fs() 2021-09-24 13:35:07 +02:00
microblaze Microblaze patches for 5.15-rc1 2021-09-08 16:02:13 -07:00
mips memblock: use memblock_free for freeing virtual pointers 2021-11-06 13:30:41 -07:00
nds32 ftrace/nds32: Update the proto for ftrace_trace_function to match ftrace_stub 2021-10-27 13:00:17 -04:00
nios2 nios2: Make NIOS2_DTB_SOURCE_BOOL depend on !COMPILE_TEST 2021-10-27 09:29:07 -05:00
openrisc Merge branch 'akpm' (patches from Andrew) 2021-09-08 12:55:35 -07:00
parisc asm-generic: build fixes for v5.15 2021-10-08 11:57:54 -07:00
powerpc memblock: use memblock_free for freeing virtual pointers 2021-11-06 13:30:41 -07:00
riscv memblock: use memblock_free for freeing virtual pointers 2021-11-06 13:30:41 -07:00
s390 memblock: rename memblock_free to memblock_phys_free 2021-11-06 13:30:41 -07:00
sh memblock: rename memblock_free to memblock_phys_free 2021-11-06 13:30:41 -07:00
sparc memblock: use memblock_free for freeing virtual pointers 2021-11-06 13:30:41 -07:00
um memblock: use memblock_free for freeing virtual pointers 2021-11-06 13:30:41 -07:00
x86 memblock: use memblock_free for freeing virtual pointers 2021-11-06 13:30:41 -07:00
xtensa xtensa: xtfpga: Try software restart before simulating CPU reset 2021-10-05 12:19:05 -07:00
.gitignore .gitignore: prefix local generated files with a slash 2021-05-02 00:43:35 +09:00
Kconfig Merge branch 'akpm' (patches from Andrew) 2021-09-08 12:55:35 -07:00