mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/5] watchdog: Set missing .owner = THIS_MODULE in watchdog_ops
@ 2026-11-30 22:54 Ian Rogers
  2026-11-30 22:54 ` [PATCH 1/5] watchdog: arm_smc_wdt: Set " Ian Rogers
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Ian Rogers @ 2026-11-30 22:54 UTC (permalink / raw)
  To: Wim Van Sebroeck, Guenter Roeck
  Cc: Nathan Chancellor, linux-watchdog, llvm, linux-kernel, Ian Rogers

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

 drivers/watchdog/arm_smc_wdt.c    | 2 ++
 drivers/watchdog/bd96801_wdt.c    | 1 +
 drivers/watchdog/ebc-c384_wdt.c   | 1 +
 drivers/watchdog/max77620_wdt.c   | 1 +
 drivers/watchdog/meson_gxbb_wdt.c | 1 +
 5 files changed, 6 insertions(+)


base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244
-- 
2.56.1.839.g22a8290db9-goog


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-11-30 23:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-30 22:54 [PATCH 0/5] watchdog: Set missing .owner = THIS_MODULE in watchdog_ops Ian Rogers
2026-11-30 22:54 ` [PATCH 1/5] watchdog: arm_smc_wdt: Set " Ian Rogers
2026-11-30 22:54 ` [PATCH 2/5] watchdog: bd96801_wdt: " Ian Rogers
2026-11-30 22:54 ` [PATCH 3/5] watchdog: ebc-c384_wdt: " Ian Rogers
2026-11-30 22:54 ` [PATCH 4/5] watchdog: max77620: " Ian Rogers
2026-11-30 22:54 ` [PATCH 5/5] watchdog: meson_gxbb_wdt: " Ian Rogers
2026-11-30 23:10 ` [PATCH 0/5] watchdog: Set missing " Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®