mirror-linux/arch/xtensa/mm
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
..
Makefile xtensa: noMMU: allow handling protection faults 2022-05-01 19:51:21 -07:00
cache.c xtensa: remove uses of PG_arch_1 on individual pages 2024-04-25 20:56:13 -07:00
fault.c xtensa: fault: include <asm/traps.h> 2023-09-20 05:03:18 -07:00
highmem.c xtensa/mm/highmem: Make generic kmap_atomic() work correctly 2020-11-16 21:19:24 +01:00
init.c xtensa/mm: enable ARCH_HAS_VM_GET_PAGE_PROT 2022-07-17 17:14:39 -07:00
ioremap.c xtensa: mm: convert to GENERIC_IOREMAP 2023-08-18 10:12:35 -07:00
kasan_init.c mm/memblock: add memblock_alloc_or_panic interface 2025-01-25 20:22:38 -08:00
misc.S xtensa: add asm-prototypes.h 2023-06-12 19:48:57 -07:00
mmu.c xtensa: move asid_cache from fault.c to mmu.c 2022-05-01 19:51:20 -07:00
tlb.c mm: implement update_mmu_tlb() using update_mmu_tlb_range() 2024-07-03 19:29:57 -07:00