Skip to contentSkip to conversation

drm/file: fix client_name_lock kernel-doc warning

PATCH In review Jani Nikula 3 participants 3 messages Oct 9, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/file: fix client_name_lock kernel-doc warning

It's client_name_lock, not name_lock. Also unify style while at it.

Fixes 56c594d8df64 ("drm: add DRM_SET_CLIENT_NAME ioctl")
Cc Tvrtko Ursulin <[email protected]>
Cc Dmitry Osipenko <[email protected]>
Cc Pierre-Eric Pelloux-Prayer <[email protected]>
Cc Christian König <[email protected]>
---
 include/drm/drm_file.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
include/drm/drm_file.h +4 -1
index d4f1c115ea0f..f0ef32e9fa5e 100644
@@ -395,7 +395,10 @@ struct drm_file {
 	 * Userspace-provided name; useful for accounting and debugging.
 	 */
 	const char *client_name;
-	/** @name_lock: Protects @client_name. */
+
+	/**
+	 * @client_name_lock: Protects @client_name.
+	 */
 	struct mutex client_name_lock;
 };
 
Signature · 1 line
2.39.5
Reviewed-by on v1 1/1
#1 lore raw
Quoted 19 lines · Jani Nikula

It's client_name_lock, not name_lock. Also unify style while at it.

Fixes 56c594d8df64 ("drm: add DRM_SET_CLIENT_NAME ioctl")
Cc Tvrtko Ursulin <[email protected]>
Cc Dmitry Osipenko <[email protected]>
Cc Pierre-Eric Pelloux-Prayer <[email protected]>
Cc Christian König <[email protected]>
---
 include/drm/drm_file.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
include/drm/drm_file.h +0 -0
index d4f1c115ea0f..f0ef32e9fa5e 100644

include/drm/drm_file.h struct drm_file { · line 403

Quoted 10 lines
include/drm/drm_file.h +4 -1
@@ -395,7 +395,10 @@ struct drm_file {
 	 * Userspace-provided name; useful for accounting and debugging.
 	 */
 	const char *client_name;
-	/** @name_lock: Protects @client_name. */
+
+	/**
+	 * @client_name_lock: Protects @client_name.
+	 */
 	struct mutex client_name_lock;
 };

Thanks for the quick fix! Please apply to misc-next

Signature · 2 lines
Best regards,
Dmitry
#2 lore raw

Am 09.10.24 um 16:23 schrieb Dmitry Osipenko:

Quoted 15 lines · Jani Nikula
Quoted 14 lines

It's client_name_lock, not name_lock. Also unify style while at it.

Fixes 56c594d8df64 ("drm: add DRM_SET_CLIENT_NAME ioctl")
Cc Tvrtko Ursulin <[email protected]>
Cc Dmitry Osipenko <[email protected]>
Cc Pierre-Eric Pelloux-Prayer <[email protected]>
Cc Christian König <[email protected]>
---
  include/drm/drm_file.h | 5 ++++-
  1 file changed, 4 insertions(+), 1 deletion(-)
Quoted 16 lines
Quoted 5 lines
include/drm/drm_file.h +0 -0
index d4f1c115ea0f..f0ef32e9fa5e 100644

include/drm/drm_file.h struct drm_file { · line 403

Quoted 10 lines
include/drm/drm_file.h +4 -1
@@ -395,7 +395,10 @@ struct drm_file {
  	 * Userspace-provided name; useful for accounting and debugging.
  	 */
  	const char *client_name;
-	/** @name_lock: Protects @client_name. */
+
+	/**
+	 * @client_name_lock: Protects @client_name.
+	 */
  	struct mutex client_name_lock;
  };

Thanks for the quick fix! Please apply to misc-next

Done.

Christian.

Quoted 3 lines