linux-yocto/arch
Guo Weikang c6f239796b mm/memblock: add memblock_alloc_or_panic interface
Before SLUB initialization, various subsystems used memblock_alloc to
allocate memory.  In most cases, when memory allocation fails, an
immediate panic is required.  To simplify this behavior and reduce
repetitive checks, introduce `memblock_alloc_or_panic`.  This function
ensures that memory allocation failures result in a panic automatically,
improving code readability and consistency across subsystems that require
this behavior.

[guoweikang.kernel@gmail.com: arch/s390: save_area_alloc default failure behavior changed to panic]
  Link: https://lkml.kernel.org/r/20250109033136.2845676-1-guoweikang.kernel@gmail.com
  Link: https://lore.kernel.org/lkml/Z2fknmnNtiZbCc7x@kernel.org/
Link: https://lkml.kernel.org/r/20250102072528.650926-1-guoweikang.kernel@gmail.com
Signed-off-by: Guo Weikang <guoweikang.kernel@gmail.com>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>	[m68k]
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>	[s390]
Acked-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Cc: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2025-01-25 20:22:38 -08:00
..
alpha mm/memblock: add memblock_alloc_or_panic interface 2025-01-25 20:22:38 -08:00
arc asm-generic: pgalloc: provide generic __pgd_{alloc,free} 2025-01-25 20:22:24 -08:00
arm mm/memblock: add memblock_alloc_or_panic interface 2025-01-25 20:22:38 -08:00
arm64 mm/memblock: add memblock_alloc_or_panic interface 2025-01-25 20:22:38 -08:00
csky asm-generic: pgalloc: provide generic __pgd_{alloc,free} 2025-01-25 20:22:24 -08:00
hexagon asm-generic: pgalloc: provide generic __pgd_{alloc,free} 2025-01-25 20:22:24 -08:00
loongarch mm/memblock: add memblock_alloc_or_panic interface 2025-01-25 20:22:38 -08:00
m68k mm/memblock: add memblock_alloc_or_panic interface 2025-01-25 20:22:38 -08:00
microblaze asm-generic: pgalloc: provide generic __pgd_{alloc,free} 2025-01-25 20:22:24 -08:00
mips mm/memblock: add memblock_alloc_or_panic interface 2025-01-25 20:22:38 -08:00
nios2 asm-generic: pgalloc: provide generic __pgd_{alloc,free} 2025-01-25 20:22:24 -08:00
openrisc mm/memblock: add memblock_alloc_or_panic interface 2025-01-25 20:22:38 -08:00
parisc mm/memblock: add memblock_alloc_or_panic interface 2025-01-25 20:22:38 -08:00
powerpc mm/memblock: add memblock_alloc_or_panic interface 2025-01-25 20:22:38 -08:00
riscv mm/memblock: add memblock_alloc_or_panic interface 2025-01-25 20:22:38 -08:00
s390 mm/memblock: add memblock_alloc_or_panic interface 2025-01-25 20:22:38 -08:00
sh mm/memblock: add memblock_alloc_or_panic interface 2025-01-25 20:22:38 -08:00
sparc mm/memblock: add memblock_alloc_or_panic interface 2025-01-25 20:22:38 -08:00
um mm/memblock: add memblock_alloc_or_panic interface 2025-01-25 20:22:38 -08:00
x86 mm/memblock: add memblock_alloc_or_panic interface 2025-01-25 20:22:38 -08:00
xtensa mm/memblock: add memblock_alloc_or_panic interface 2025-01-25 20:22:38 -08:00
.gitignore
Kconfig Kbuild updates for v6.13 2024-11-30 13:41:50 -08:00