2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/arch/m68k/sun3
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
..
prom m68k: sun3: Remove unused vsprintf() return value in prom_printf() 2023-10-06 10:03:03 +02:00
config.c m68k: sun3/3x: Add and use "sun3.h" 2023-10-06 10:03:04 +02:00
dvma.c m68k: Pass a pointer to virt_to_pfn() virt_to_page() 2023-05-29 11:27:07 +02:00
idprom.c m68k: sun3/3x: Add and use "sun3.h" 2023-10-06 10:03:04 +02:00
intersil.c m68k: sun3/3x: Add and use "sun3.h" 2023-10-06 10:03:04 +02:00
leds.c m68k: sun3/3x: Add and use "sun3.h" 2023-10-06 10:03:04 +02:00
Makefile m68k: sun3: Descend to prom from arch/m68k/sun3 2020-07-13 11:39:12 +02:00
mmu_emu.c m68k: sun3: Fix indentation by 5 or 7 spaces 2023-10-16 14:30:39 +02:00
sun3.h m68k: sun3/3x: Add and use "sun3.h" 2023-10-06 10:03:04 +02:00
sun3dvma.c mm/memblock: add memblock_alloc_or_panic interface 2025-01-25 20:22:38 -08:00
sun3ints.c m68k: sun3: Change led_pattern[] to unsigned char 2023-10-06 10:03:04 +02:00