s390/boot: Add physmem_alloc()
authorVasily Gorbik <gor@linux.ibm.com>
Fri, 29 Nov 2024 01:26:19 +0000 (02:26 +0100)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Sun, 26 Jan 2025 16:23:58 +0000 (17:23 +0100)
commitaeb4358a52365269e6ca658505a6410ed85570b2
treeae117da8572fa282960cb9acee59ede388a87353
parent02415f1cf435ac1403743156c21b79f52adee6ab
s390/boot: Add physmem_alloc()

Add physmem_alloc() as a variant of physmem_alloc_or_die() that can return
an error instead of triggering a panic on OOM. This allows callers to
implement alternative fallback paths.

Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/boot/boot.h
arch/s390/boot/physmem_info.c