Re: [PATCH 0/2] watchdog: pretimeout: Allow building dump governor as module

From: Andrew Morton

Date: Thu Jul 30 2026 - 18:53:07 EST


On Thu, 30 Jul 2026 15:00:20 -0700 Mayank Rungta via B4 Relay <devnull+mrungta.google.com@xxxxxxxxxx> wrote:

> All other watchdog pretimeout governors (noop, panic) can be built as
> loadable modules. However the "dump" pretimeout governor is restricted
> to built-in code because it calls trigger_all_cpu_backtrace(), which
> relies on arch_trigger_cpumask_backtrace(), an arch specific helper that
> is not exported to loadable modules.
>
> This 2-patch series allows building the dump governor as a module (=m):
> 1) Export cpumask_backtrace() in lib/nmi_backtrace.c.
> 2) Convert CONFIG_WATCHDOG_PRETIMEOUT_GOV_DUMP from bool to tristate.

LGTM. Can you please redo against current mainline? The Kconfig has
changed.