Linux kernel staging patches
 help / color / mirror / Atom feed
* [PATCH] staging: greybus: raw: add comment for list_lock mutex
@ 2026-07-31 18:57 Mirza Ishan Beg
  0 siblings, 0 replies; only message in thread
From: Mirza Ishan Beg @ 2026-07-31 18:57 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Johan Hovold, Alex Elder, greybus-dev, linux-staging,
	seedandsyntax

Add a comment for list_lock mutex to document what it protects,
fixing the following checkpatch warning:

CHECK: struct mutex definition without comment

Signed-off-by: Mirza Ishan Beg <seedandsyntax@gmail.com>
---
 drivers/staging/greybus/raw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/greybus/raw.c b/drivers/staging/greybus/raw.c
index 459aed0f1240..17c88778c30c 100644
--- a/drivers/staging/greybus/raw.c
+++ b/drivers/staging/greybus/raw.c
@@ -20,7 +20,7 @@ struct gb_raw {
 
 	struct list_head list;
 	int list_data;
-	struct mutex list_lock;
+	struct mutex list_lock; /* protect list and list_data */
 	struct rw_semaphore disconnect_lock;
 	bool disconnected;
 	struct cdev cdev;
-- 
2.47.3


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-31 19:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-31 18:57 [PATCH] staging: greybus: raw: add comment for list_lock mutex Mirza Ishan Beg

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