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/powerpc/platforms/powermac
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
..
backlight.c powerpc/powermac: Use of_property_match_string() in pmac_has_backlight_type() 2024-11-14 22:52:43 +11:00
bootx_init.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
cache.S powerpc/mm: Switch obsolete dssall to .long 2021-12-23 22:35:13 +11:00
feature.c powerpc: Remove duplicate/unnecessary ifdefs 2024-02-21 15:15:40 +11:00
Kconfig powerpc/32: fix ADB_CUDA kconfig warning 2024-03-03 22:18:46 +11:00
low_i2c.c powerpc/powermac: add missing of_node_put 2023-09-18 12:23:26 +10:00
Makefile kbuild: remove cc-option test of -fno-stack-protector 2020-07-07 11:13:10 +09:00
nvram.c mm/memblock: add memblock_alloc_or_panic interface 2025-01-25 20:22:38 -08:00
pci.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
pfunc_base.c powerpc/powermac/pfunc_base: Use helper function for_each_child_of_node() 2024-08-29 22:30:34 +10:00
pfunc_core.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
pic.c powerpc: Fix typos 2024-05-08 00:21:30 +10:00
pmac.h powerpc/powermac: add missing g5_phy_disable_cpu1() declaration 2022-05-22 15:59:54 +10:00
setup.c powerpc: Explicitly include correct DT includes 2023-08-02 22:22:19 +10:00
sleep.S powerpc: Fix typos 2024-05-08 00:21:30 +10:00
smp.c asm-generic: introduce text-patching.h 2024-11-07 14:25:15 -08:00
time.c powerpc/powermac: Use early_* IO variants in via_calibrate_decr() 2023-08-02 22:57:22 +10:00
udbg_adb.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
udbg_scc.c powerpc/powermac/udbg_scc: Add missing of_node_put()s in udbg_scc_init() 2022-09-05 17:30:30 +10:00