Re: [PATCH v1] panic: add panic_redirect_cpu declaration to header

From: Andrew Morton

Date: Sun Jan 18 2026 - 15:44:35 EST


On Sun, 18 Jan 2026 14:01:49 +0200 Pnina Feder <pnina.feder@xxxxxxxxxxxx> wrote:

> Add the extern declaration for panic_redirect_cpu to linux/panic.h
> to fix the sparse warning:
>
> kernel/panic.c:305:10: sparse: sparse: symbol 'panic_redirect_cpu'
> was not declared. Should it be static?
>
> The variable needs to be declared in the header alongside panic_cpu
> since it is used for synchronization when redirecting panic to a
> specific CPU via the panic_force_cpu= boot parameter.
>

Thanks, I added this as a squashable fix against your earlier patch
"panic: add panic_force_cpu= parameter to redirect panic to a specific
CPU".

(It's nice to tell people when a patch fixes a pending patch in this
manner - otherwise everyone has to run around trying to figure out
which tree is being patched and why).