Re: [PATCH v6 0/3] Introduce arch_do_panic
From: Andreas Larsson
Date: Wed Oct 07 2026 - 10:02:54 EST
On 2026-09-01 02:19, Andrew Morton wrote:
> On Mon, 31 Aug 2026 11:57:14 +0200 Mete Durlu <meted@xxxxxxxxxxxxx> wrote:
>
>> Replace architecture-specific ifdef sections in vpanic() with a clean
>> arch_do_panic() hook. Currently s390 and sparc embed their panic
>> handlers directly in vpanic() using preprocessor conditionals, making
>> the common code path harder to maintain.
>
> Nice little cleanup, thanks.
>
>> arch/s390/kernel/traps.c | 7 +++++++
>> arch/sparc/kernel/setup.c | 9 +++++++++
>> include/linux/panic.h | 2 ++
>> kernel/panic.c | 15 +++------------
>> 4 files changed, 21 insertions(+), 12 deletions(-)
>
> Why do cleanups make the kernel bigger. It's often that way.
>
> I'll scoop it up. An ack from sparc people would be nice, please.
Tested-by: Andreas Larsson <andreas@xxxxxxxxxxx>
Acked-by: Andreas Larsson <andreas@xxxxxxxxxxx>
Cheers,
Andreas