Re: [PATCH v6 0/3] Introduce arch_do_panic
From: Andrew Morton
Date: Mon Aug 31 2026 - 21:29:11 EST
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.