* [PATCH] staging: vme_user: vme_bridge.h: Fix mutex without comment warning
@ 2024-07-31 7:36 Riyan Dhiman
2024-07-31 7:44 ` Greg KH
0 siblings, 1 reply; 3+ messages in thread
From: Riyan Dhiman @ 2024-07-31 7:36 UTC (permalink / raw)
To: gregkh; +Cc: dri-devel, linux-fbdev, linux-staging, linux-kernel, Riyan Dhiman
Adhere to Linux kernel coding style
Reported by checkpatch:
CHECK: mutex definition without comment
Signed-off-by: Riyan Dhiman <riyandhiman14@gmail.com>
---
drivers/staging/vme_user/vme_bridge.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/staging/vme_user/vme_bridge.h b/drivers/staging/vme_user/vme_bridge.h
index 9bdc41bb6602..0b1f05944f0d 100644
--- a/drivers/staging/vme_user/vme_bridge.h
+++ b/drivers/staging/vme_user/vme_bridge.h
@@ -28,6 +28,7 @@ struct vme_master_resource {
struct vme_slave_resource {
struct list_head list;
struct vme_bridge *parent;
+ /* Locking for VME slave resources */
struct mutex mtx;
int locked;
int number;
@@ -55,12 +56,14 @@ struct vme_dma_list {
struct list_head list;
struct vme_dma_resource *parent;
struct list_head entries;
+ /* Mutex to protect access to DMA list's entries */
struct mutex mtx;
};
struct vme_dma_resource {
struct list_head list;
struct vme_bridge *parent;
+ /* Mutex to protect DMA controller resources and ensure thread-safe operations */
struct mutex mtx;
int locked;
int number;
@@ -72,6 +75,7 @@ struct vme_dma_resource {
struct vme_lm_resource {
struct list_head list;
struct vme_bridge *parent;
+ /* Mutex to protect LM Monitor resources and ensure thread-safe operations */
struct mutex mtx;
int locked;
int number;
--
2.39.2
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] staging: vme_user: vme_bridge.h: Fix mutex without comment warning
2024-07-31 7:36 [PATCH] staging: vme_user: vme_bridge.h: Fix mutex without comment warning Riyan Dhiman
@ 2024-07-31 7:44 ` Greg KH
[not found] ` <CAAjz0Qahd96tQEpbWPXiGQ7Frku3sXpKQ6BfTWzqxcf4ApSYEA@mail.gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2024-07-31 7:44 UTC (permalink / raw)
To: Riyan Dhiman; +Cc: dri-devel, linux-fbdev, linux-staging, linux-kernel
On Wed, Jul 31, 2024 at 01:06:05PM +0530, Riyan Dhiman wrote:
> Adhere to Linux kernel coding style
>
> Reported by checkpatch:
>
> CHECK: mutex definition without comment
>
> Signed-off-by: Riyan Dhiman <riyandhiman14@gmail.com>
> ---
> drivers/staging/vme_user/vme_bridge.h | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/staging/vme_user/vme_bridge.h b/drivers/staging/vme_user/vme_bridge.h
> index 9bdc41bb6602..0b1f05944f0d 100644
> --- a/drivers/staging/vme_user/vme_bridge.h
> +++ b/drivers/staging/vme_user/vme_bridge.h
> @@ -28,6 +28,7 @@ struct vme_master_resource {
> struct vme_slave_resource {
> struct list_head list;
> struct vme_bridge *parent;
> + /* Locking for VME slave resources */
Are you sure about all of these? Please document them individually and
put the proof of that in the changelog text.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-07-31 8:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-31 7:36 [PATCH] staging: vme_user: vme_bridge.h: Fix mutex without comment warning Riyan Dhiman
2024-07-31 7:44 ` Greg KH
[not found] ` <CAAjz0Qahd96tQEpbWPXiGQ7Frku3sXpKQ6BfTWzqxcf4ApSYEA@mail.gmail.com>
2024-07-31 8:38 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox