1
0
Fork 0
alistair23-linux/arch
Mike Rapoport 0ba9e6edd4 memblock: drop memblock_alloc_base()
The memblock_alloc_base() function tries to allocate a memory up to the
limit specified by its max_addr parameter and panics if the allocation
fails.  Replace its usage with memblock_phys_alloc_range() and make the
callers check the return value and panic in case of error.

Link: http://lkml.kernel.org/r/1548057848-15136-10-git-send-email-rppt@linux.ibm.com
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Acked-by: Michael Ellerman <mpe@ellerman.id.au>		[powerpc]
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: memblock_phys_alloc(): don't panic 2019-03-12 10:04:01 -07:00
arm64 memblock: memblock_phys_alloc(): don't panic 2019-03-12 10:04:01 -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 memblock: drop memblock_alloc_base() 2019-03-12 10:04:01 -07:00
riscv DMA mapping updates for 5.1 2019-03-10 11:54:48 -07:00
s390 memblock: drop memblock_alloc_base() 2019-03-12 10:04:01 -07:00
sh memblock: drop __memblock_alloc_base() 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 memblock: drop __memblock_alloc_base() 2019-03-12 10:04:01 -07:00
xtensa memblock: memblock_phys_alloc(): don't panic 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