* Re: [PATCH can-next v9 06/13] can: gs_usb: add support for context analysis
[not found] <20261121-gs_usb-fixes-v9-6-db121d488945@pengutronix.de>
@ 2026-11-23 12:00 ` netdev-bot+sashiko
0 siblings, 0 replies; only message in thread
From: netdev-bot+sashiko @ 2026-11-23 12:00 UTC (permalink / raw)
To: mkl
Cc: mailhol, pfink, eric, max, wg, kernel, linux-can,
shuangpeng.kernel, stable, vadim.fedorenko, kuba
Thank you for your contribution! Sashiko AI review found 1 potential
issue(s) to consider.
Critical: 0 · High: 0 · Medium: 1 · Low: 0
If you believe none of the issues are legitimate, please reply to each
issue of Medium severity or higher and explain why the AI is wrong.
If any of them are legitimate and you plan to respin, please let patchwork
know by including "pw-bot: cr" as a separate line at the end of your reply
(one such reply per series is enough).
- [Medium] The commit message does not mention one of the changes.
--
can: gs_usb: add support for context analysis
This commit turns on context analysis for gs_usb.o. It marks the
cyclecounter, timecounter and timestamp_initial fields in struct gs_usb
as guarded by tc_lock. It also adds or fixes the __must_hold and
__must_not_hold annotations on the low level timestamp read helpers.
> diff --git a/drivers/net/can/usb/gs_usb.c b/drivers/net/can/usb/gs_usb.c
> index 30bcb734c5df8..ab82dc07f3f50 100644
> --- a/drivers/net/can/usb/gs_usb.c
> +++ b/drivers/net/can/usb/gs_usb.c
[ ... ]
> @@ -1037,7 +1040,7 @@ static int gs_can_open(struct net_device *netdev)
> if (parent->flags & GS_USB_PARENT_FLAGS_HW_TIMESTAMP) {
> rc = gs_usb_timestamp_start(parent);
> if (rc) {
> - if (rc == -ENODEV) {
> + if (rc == -ENODEV)
> netif_device_detach(netdev);
>
> goto out_can_rx_offload_disable;
[Severity: Medium]
This hunk in gs_can_open() is a build fix, but the commit message
doesn't mention it. Should it be part of the previous patch instead?
The message only describes annotation changes:
Tag the hardware timestamp counter infrastructure in struct gs_usb as
guarded by the tc_lock. Fix the existing annotation for
gs_usb_timestamp_read(), add context analysis annotation regarding the
tc_lock to the low level timestamp reading functions.
At the parent commit, "can: gs_usb: fix hardware timestamp state for
mixed channels", gs_can_open() has an opening brace that is never
closed:
if (!parent->active_channels) {
if (parent->flags & GS_USB_PARENT_FLAGS_HW_TIMESTAMP) {
rc = gs_usb_timestamp_start(parent);
if (rc) {
if (rc == -ENODEV) {
netif_device_detach(netdev);
goto out_can_rx_offload_disable;
}
}
Because of that brace, gs_usb.c doesn't compile at that commit. A
bisect that lands there will hit the build error.
That parent commit has Fixes: 5886e4d5ecec and Cc: stable. Its message
also says:
To simplify backporting, support for context analysis is added in a later
patch.
This patch has no Fixes: or stable tag. If the parent is backported on
its own, as its message suggests, would the stable gs_usb build break?
Could the brace fix go into "can: gs_usb: fix hardware timestamp state
for mixed channels"? If it stays here, could the commit message at least
say that it fixes a build error from the previous patch?
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261121-gs_usb-fixes-v9-0-db121d488945%40pengutronix.de
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-23 12:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20261121-gs_usb-fixes-v9-6-db121d488945@pengutronix.de>
2026-11-23 12:00 ` [PATCH can-next v9 06/13] can: gs_usb: add support for context analysis netdev-bot+sashiko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox