linux/arch/powerpc/mm/nohash
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
..
8xx.c powerpc/8xx: Reduce default size of module/execmem area 2024-08-30 21:29:53 +10:00
44x.c asm-generic: introduce text-patching.h 2024-11-07 14:25:15 -08:00
Makefile - 875fa64577da ("mm/hugetlb_vmemmap: fix race with speculative PFN 2024-07-21 17:15:46 -07:00
book3e_pgtable.c asm-generic: introduce text-patching.h 2024-11-07 14:25:15 -08:00
e500.c powerpc: Handle error in mark_rodata_ro() and mark_initmem_nx() 2024-03-17 13:33:21 +11:00
e500_hugetlbpage.c powerpc: Refactor update_mmu_cache_range() 2023-10-19 17:12:44 +11:00
kaslr_booke.c powerpc: Fix typos 2024-05-08 00:21:30 +10:00
kup.c powerpc: Remove core support for 40x 2024-06-28 22:28:47 +10:00
mmu_context.c mm/memblock: add memblock_alloc_or_panic interface 2025-01-25 20:22:38 -08:00
tlb.c asm-generic: introduce text-patching.h 2024-11-07 14:25:15 -08:00
tlb_64e.c asm-generic: introduce text-patching.h 2024-11-07 14:25:15 -08:00
tlb_low.S powerpc: Remove core support for 40x 2024-06-28 22:28:47 +10:00
tlb_low_64e.S powerpc/e500: use contiguous PMD instead of hugepd 2024-07-12 15:52:18 -07:00