Re: [PATCH 0/5] watchdog: Set missing .owner = THIS_MODULE in watchdog_ops

From: Guenter Roeck

Date: Mon Nov 30 2026 - 18:10:21 EST


Hi Ian,

On 11/30/26 14:54, Ian Rogers wrote:
watchdog_open() calls try_module_get(wdd->ops->owner) so a modular
watchdog driver cannot be unloaded while /dev/watchdog is open. Five
modular watchdog drivers omit .owner = THIS_MODULE in their const struct
watchdog_ops definitions, leaving wdd->ops->owner NULL.

Split per driver to simplify review and stable backporting.

Tooling note: Found using Clang's require_explicit_initialization
attribute; an AI coding assistant helped audit call sites, verify Fixes
commits, and draft the changelogs. All five drivers were build-tested as
modules (-DMODULE) with LLVM=1.

Ian Rogers (5):
watchdog: arm_smc_wdt: Set .owner = THIS_MODULE in watchdog_ops
watchdog: bd96801_wdt: Set .owner = THIS_MODULE in watchdog_ops
watchdog: ebc-c384_wdt: Set .owner = THIS_MODULE in watchdog_ops
watchdog: max77620: Set .owner = THIS_MODULE in watchdog_ops
watchdog: meson_gxbb_wdt: Set .owner = THIS_MODULE in watchdog_ops

Series applied. Note that I dropped the second Fixes: tag from the first
patch as suggested by Sashiko.

Thanks,
Guenter