Re: [PATCH v6] mm/memblock: Add memblock_alloc_or_panic interface
Xi Ruoyao <[email protected]>
| Newsgroups | gmane.linux.ports.m68k,gmane.linux.ports.alpha,gmane.linux.kernel,gmane.linux.ports.arm.kernel,gmane.linux.ports.mips,gmane.linux.ports.parisc,gmane.linux.ports.ppc64.devel,gmane.linux.ports.riscv,gmane.linux.ports.sh.devel,gmane.linux.ports.sparc,gmane.linux.uml.devel,gmane.linux.acpi.devel,gmane.comp.emulators.xen.devel,gmane.linux.ports.arm.omap,gmane.linux.kernel.clk,gmane.linux.drivers.devicetree,gmane.linux.kernel.mm,gmane.linux.power-management.general |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 2024-12-22 at 13:43 +0800, Guo Weikang wrote: > 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. > > Signed-off-by: Guo Weikang <[email protected]> > --- Please try to avoid bumping the patch revision number so quickly. And if you must do it, you should embed a ChangeLog of your patch (below this "---" line) so people can know what has been changed. -- Xi Ruoyao <[email protected]> School of Aerospace Science and Technology, Xidian University