Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by Marc Kleine-Budde
Mon, 30 Nov 2026 09:15
[PATCH net-next 6/9] can: gs_usb: add support for context analysis
Author: Marc Kleine-Budde
Date: Mon, 30 Nov 2026 09:15
Date: Mon, 30 Nov 2026 09:15
46 lines
11311 bytes
11311 bytes
Enable context analysis for the gs_usb driver.
Tag the hardware timestamp counter infrastructure in struct gs_usb as
guarded by the tc_lock.
This has been tested on Debian testing with clang-23 and clang-24.
| Debian clang version 23.1.5 (2)
| Debian clang version 24.0.0 (++20261119065354+16721c9d8e82-1~exp1)
Link: https://patch.msgid.link/20261130-gs_usb-fixes-v12-6-9ba1f84c179a@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
---
drivers/net/can/usb/Makefile | 2 ++
drivers/net/can/usb/gs_usb.c | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/net/can/usb/Makefile b/drivers/net/can/usb/Makefile
index fcafb1ac262e..b2e1539f1d52 100644
--- a/drivers/net/can/usb/Makefile
+++ b/drivers/net/can/usb/Makefile
@@ -3,6 +3,8 @@
# Makefile for the Linux Controller Area Network USB drivers.
#
+CONTEXT_ANALYSIS_gs_usb.o := y
+
obj-$(CONFIG_CAN_8DEV_USB) += usb_8dev.o
obj-$(CONFIG_CAN_EMS_USB) += ems_usb.o
obj-$(CONFIG_CAN_ESD_USB) += esd_usb.o
diff --git a/drivers/net/can/usb/gs_usb.c b/drivers/net/can/usb/gs_usb.c
index ccdcb264c7f5..408ff40389e5 100644
--- a/drivers/net/can/usb/gs_usb.c
+++ b/drivers/net/can/usb/gs_usb.c
@@ -340,7 +340,7 @@ struct gs_usb {
/* time counter for hardware timestamps */
struct gs_usb_timer tc_active;
- struct gs_usb_timer tc_snapshot;
+ struct gs_usb_timer tc_snapshot __guarded_by(&tc_lock);
seqlock_t tc_lock; /* seqlock to guard access tc_snapshot */
struct delayed_work timestamp;
--
2.53.0
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads