WSL2-Linux-Kernel/arch
Mike Rapoport f240ec09bb memblock: replace memblock_alloc_base(ANYWHERE) with memblock_phys_alloc
The calls to memblock_alloc_base(size, align, MEMBLOCK_ALLOC_ANYWHERE)
and memblock_phys_alloc(size, align) are equivalent as both try to
allocate 'size' bytes with 'align' alignment anywhere in the memory and
panic if hte allocation fails.

The conversion is done using the following semantic patch:

  @@
  expression size, align;
  @@
  - memblock_alloc_base(size, align, MEMBLOCK_ALLOC_ANYWHERE)
  + memblock_phys_alloc(size, align)

Link: http://lkml.kernel.org/r/1548057848-15136-4-git-send-email-rppt@linux.ibm.com
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Christophe Leroy <christophe.leroy@c-s.fr>
Cc: Christoph Hellwig <hch@lst.de>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Dennis Zhou <dennis@kernel.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Greentime Hu <green.hu@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Guan Xuetao <gxt@pku.edu.cn>
Cc: Guo Ren <guoren@kernel.org>
Cc: Guo Ren <ren_guo@c-sky.com>				[c-sky]
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Juergen Gross <jgross@suse.com>			[Xen]
Cc: Mark Salter <msalter@redhat.com>
Cc: Matt Turner <mattst88@gmail.com>
Cc: Max Filippov <jcmvbkbc@gmail.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Michal Simek <monstr@monstr.eu>
Cc: Paul Burton <paul.burton@mips.com>
Cc: Petr Mladek <pmladek@suse.com>
Cc: Richard Weinberger <richard@nod.at>
Cc: Rich Felker <dalias@libc.org>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Rob Herring <robh@kernel.org>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Stafford Horne <shorne@gmail.com>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Vineet Gupta <vgupta@synopsys.com>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2019-03-12 10:04:01 -07:00
..
alpha Merge branch 'akpm' (patches from Andrew) 2019-03-06 10:31:36 -08:00
arc DMA mapping updates for 5.1 2019-03-10 11:54:48 -07:00
arm memblock: replace memblock_alloc_base(ANYWHERE) with memblock_phys_alloc 2019-03-12 10:04:01 -07:00
arm64 This is the bulk of pin control changes for the v5.1 kernel cycle. 2019-03-11 11:12:50 -07:00
c6x arch: simplify several early memory allocations 2019-03-07 18:32:03 -08:00
csky DMA mapping updates for 5.1 2019-03-10 11:54:48 -07:00
h8300 configs: get rid of obsolete CONFIG_ENABLE_WARN_DEPRECATED 2019-03-07 18:32:02 -08:00
hexagon y2038: additional syscall ABI cleanup 2019-02-27 21:45:27 +01:00
ia64 Merge branch 'akpm' (patches from Andrew) 2019-03-06 10:31:36 -08:00
m68k configs: get rid of obsolete CONFIG_ENABLE_WARN_DEPRECATED 2019-03-07 18:32:02 -08:00
microblaze microblaze: prefer memblock API returning virtual address 2019-03-07 18:32:03 -08:00
mips Kbuild updates for v5.1 2019-03-10 17:48:21 -07:00
nds32 fscrypt updates for v5.1 2019-03-09 10:54:24 -08:00
nios2 nios2 update for v5.1-rc1 2019-03-10 10:13:37 -07:00
openrisc openrisc: prefer memblock APIs returning virtual address 2019-03-12 10:04:01 -07:00
parisc Char/Misc driver patches for 5.1-rc1 2019-03-06 14:18:59 -08:00
powerpc powerpc: use memblock functions returning virtual address 2019-03-12 10:04:01 -07:00
riscv DMA mapping updates for 5.1 2019-03-10 11:54:48 -07:00
s390 Kbuild updates for v5.1 2019-03-10 17:48:21 -07:00
sh memblock: replace memblock_alloc_base(ANYWHERE) with memblock_phys_alloc 2019-03-12 10:04:01 -07:00
sparc DMA mapping updates for 5.1 2019-03-10 11:54:48 -07:00
um a.out: remove core dumping support 2019-03-05 10:00:35 -08:00
unicore32 DMA mapping updates for 5.1 2019-03-10 11:54:48 -07:00
x86 Kbuild updates for v5.1 2019-03-10 17:48:21 -07:00
xtensa memblock: replace memblock_alloc_base(ANYWHERE) with memblock_phys_alloc 2019-03-12 10:04:01 -07:00
.gitignore
Kconfig Char/Misc driver patches for 5.1-rc1 2019-03-06 14:18:59 -08:00