From: Guenter Roeck <linux@roeck-us.net>
To: Ian Rogers <irogers@google.com>,
Wim Van Sebroeck <wim@linux-watchdog.org>
Cc: Nathan Chancellor <nathan@kernel.org>,
linux-watchdog@vger.kernel.org, llvm@lists.linux.dev,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/5] watchdog: Set missing .owner = THIS_MODULE in watchdog_ops
Date: Mon, 30 Nov 2026 15:10:12 -0800 [thread overview]
Message-ID: <e76b08e2-9fb3-4517-b7a5-4751b83ee8c2@roeck-us.net> (raw)
In-Reply-To: <20261130225410.98349-1-irogers@google.com>
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
prev parent reply other threads:[~2026-11-30 23:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 22:54 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 ` Guenter Roeck [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e76b08e2-9fb3-4517-b7a5-4751b83ee8c2@roeck-us.net \
--to=linux@roeck-us.net \
--cc=irogers@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=nathan@kernel.org \
--cc=wim@linux-watchdog.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®