From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796079457; b=TrVNA3B222Gcm+BAkSdOOjYdX7mfRogRoTeEB6QsStnwsqaDWzIEopkzBcc9gE0NxV8D Y09/kSb4SWBOG1xYW0c5/SBDmgFN+AP13lyAGkljexY7CcJPAMpUD9ccbZGb4SKEl7+Sf hb1Vdj5gQTll2mwJz7QZ5mpMuFnNBt21rEg7YrxAgqf7KDbCotiEE2ggFelIVacpJhzMl 5DgBNTzT5fFvO5vewz8yQt8Fqu5G6PjuflZMkwV4pc3rpp9+tLXZVxjRw+iLD+mlZ1cCw m8vR91JDEsYkkT2O7ntIrN0jplncDUrMk5yGXmYE2Tqgd2y4uuOwezbpx/y3yRhQFAA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796079457; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=fYmpeRIDRn0Wk7u+GAYR9MZLUqIJJR6cSjcHXGPw4k8=; b=Vedn24qg8XSLidO/l3pl8tfGp0bmQWBqKczDjNIcqEBCbNZ/YBQW2uPv0VM9epxe8NI9 vhNlh5jAP8i78Lp+pqTIERcGFOli1vE3BbFzhK1+hWaJG9tq4Q62Do2tmcONEl0O24ncz q3wqiTQak0gFbEKCAKh0AE+0wim2tscHqZe0hfG5b4IEM9Sm8HGWVASDQq9eG7K1oI+pH jaBnU5AfyPynu2j8wJJHDL/swao8IjdSNW9pf2um5Igqf5GIMsqF23sf+Odns4v6SohvM fRCYcqgkIZgjMT3AYOLamYNX54E0GqOM0qPOH/EIJnJ9AipAkkZKhqAUKPkegEdhjgA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=UIy6Ylfp; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C7437606A32E for ; Mon, 30 Nov 2026 22:57:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=UIy6Ylfp Received: by smtp.kernel.org (Postfix) with ESMTPSA id 25E501F0089C; Mon, 30 Nov 2026 22:57:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796079457; bh=fYmpeRIDRn0Wk7u+GAYR9MZLUqIJJR6cSjcHXGPw4k8=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=UIy6Ylfp7Pbo+6me81ZVjv3IHQEG1Nple4pkTLNtSfuv4/xTZwogdzFX2f/iC6Jym RDqpkOwfbGTBKVgyZ29e6wwFjjyobYF9Fir845gpCl41YhmK95rPMVhUrUXjqljiHS dXLjFJflcGwaF1MX6YM2B3uUg0vpGRtLMUYK+bx9cj+Pn8tDr+AyJPxFA7qmZZlMvX TkBuKm/UnQVbZQ1Oh/IJ9wtVJLRn4/LEJIf+fqcAgZ5n9iSWmW1838YGEVsUDEq8Xu cRr3Gc2ySYtTF6KsiIlSQQhVfaxfDYI1Gncrxir+B1x9oINTVajXt5z2PGjsv/WLEK hJD9jb/9N0MEg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 1/5] watchdog: arm_smc_wdt: Set .owner = THIS_MODULE in watchdog_ops Reply-To: sashiko-reviews@lists.linux.dev To: "Ian Rogers" Cc: linux-watchdog@vger.kernel.org In-Reply-To: <20261130225410.98349-2-irogers@google.com> References: <20261130225410.98349-1-irogers@google.com> <20261130225410.98349-2-irogers@google.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Nov 2026 22:57:36 +0000 X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] watchdog: arm_smc_wdt: inaccurate Fixes trailer for cc0df5eba1b3 -- commit 734e0b2d4c499e1ba1d7b0b404129c165299863c Author: Ian Rogers > watchdog: arm_smc_wdt: Set .owner =3D THIS_MODULE in watchdog_ops > > watchdog_open() calls try_module_get(wdd->ops->owner) to prevent the > watchdog driver module from being unloaded while /dev/watchdog is open, > and watchdog_release() calls module_put(wdd->ops->owner). Because > try_module_get(NULL) succeeds without incrementing any module reference > count, omitting .owner =3D THIS_MODULE allows the module to be unloaded > while the watchdog character device is open. > > Set .owner =3D THIS_MODULE in smcwd_ops and smcwd_timeleft_ops, found with > Clang's require_explicit_initialization attribute. > > Fixes: 72a9e7fea586 ("watchdog: Add new arm_smc_wdt watchdog driver") > Fixes: cc0df5eba1b3 ("watchdog: arm_smc_wdt: get wdt status through SMCWD= _GET_TIMELEFT") > Signed-off-by: Ian Rogers [Severity: Low] Should the Fixes: tag for cc0df5eba1b3 ("watchdog: arm_smc_wdt: get wdt status through SMCWD_GET_TIMELEFT") be dropped? Both smcwd_ops and smcwd_timeleft_ops were introduced without .owner in 72a9e7fea586 ("watchdog: Add new arm_smc_wdt watchdog driver"). Commit cc0df5eba1b3 ("watchdog: arm_smc_wdt: get wdt status through SMCWD_GET_TIMELEFT") only changed how smcwd_probe() selects between them, and citing it may prevent this fix from being backported to stable trees predating that commit. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261130225410.9834= 9-1-irogers@google.com?part=3D1