[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMuHMdU6S9LYdnEPDJ28+CRBWsKZKHu3-++_N=p7WVPBo7pNzA@mail.gmail.com>
Date: Thu, 2 Jan 2025 10:12:29 +0100
From: Geert Uytterhoeven <geert@...ux-m68k.org>
To: Guo Weikang <guoweikang.kernel@...il.com>
Cc: Mike Rapoport <rppt@...nel.org>, Andrew Morton <akpm@...ux-foundation.org>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v8] mm/memblock: Add memblock_alloc_or_panic interface
On Thu, Jan 2, 2025 at 8:25 AM Guo Weikang <guoweikang.kernel@...il.com> 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 <guoweikang.kernel@...il.com>
> arch/m68k/mm/init.c | 5 +-
> arch/m68k/mm/mcfmmu.c | 10 +---
> arch/m68k/mm/motorola.c | 5 +-
> arch/m68k/mm/sun3mmu.c | 10 +---
> arch/m68k/sun3/sun3dvma.c | 6 +--
Acked-by: Geert Uytterhoeven <geert@...ux-m68k.org> # m68k
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@...ux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Powered by blists - more mailing lists