Skip to contentSkip to conversation

drm/doc: Fixing xml documentation warning

PATCH Applied Danilo Cesar Lemes de Paula 2 participants 3 messages Aug 21, 2015 – Aug 25, 2015

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

PATCH 1/1 drm/doc: Fixing xml documentation warning

"/**" should be used for kernel-doc documentation only. It causes a warning with the new "in struct body" format.

Cc Randy Dunlap <[email protected]>
Cc Daniel Vetter <[email protected]>
Cc Laurent Pinchart <[email protected]>
Cc Jonathan Corbet <[email protected]>
Cc Herbert Xu <[email protected]>
Cc Stephan Mueller <[email protected]>
Cc Michal Marek <[email protected]>
Cc intel-gfx <[email protected]>
Cc dri-devel <[email protected]>
Cc Graham Whaley <[email protected]>
---
 include/drm/drm_modeset_lock.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
include/drm/drm_modeset_lock.h +5 -5
index 70595ff..c16a3ec 100644
@@ -43,19 +43,19 @@ struct drm_modeset_acquire_ctx {
 
 	struct ww_acquire_ctx ww_ctx;
 
-	/**
+	/*
 	 * Contended lock: if a lock is contended you should only call
 	 * drm_modeset_backoff() which drops locks and slow-locks the
 	 * contended lock.
 	 */
 	struct drm_modeset_lock *contended;
 
-	/**
+	/*
 	 * list of held locks (drm_modeset_lock)
 	 */
 	struct list_head locked;
 
-	/**
+	/*
 	 * Trylock mode, use only for panic handlers!
 	 */
 	bool trylock_only;
@@ -70,12 +70,12 @@ struct drm_modeset_acquire_ctx {
  * Used for locking CRTCs and other modeset resources.
  */
 struct drm_modeset_lock {
-	/**
+	/*
 	 * modeset lock
 	 */
 	struct ww_mutex mutex;
 
-	/**
+	/*
 	 * Resources that are locked as part of an atomic update are added
 	 * to a list (so we know what to unlock at the end).
 	 */
Signature · 1 line
2.4.3
#1 lore raw
Quoted 16 lines · Danilo Cesar Lemes de Paula

"/**" should be used for kernel-doc documentation only. It causes a warning with the new "in struct body" format.

Cc Randy Dunlap <[email protected]>
Cc Daniel Vetter <[email protected]>
Cc Laurent Pinchart <[email protected]>
Cc Jonathan Corbet <[email protected]>
Cc Herbert Xu <[email protected]>
Cc Stephan Mueller <[email protected]>
Cc Michal Marek <[email protected]>
Cc intel-gfx <[email protected]>
Cc dri-devel <[email protected]>
Cc Graham Whaley <[email protected]>

Applied to drm-misc, thanks.
-Daniel

Quoted 49 lines
---
 include/drm/drm_modeset_lock.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
include/drm/drm_modeset_lock.h +5 -5
index 70595ff..c16a3ec 100644
@@ -43,19 +43,19 @@ struct drm_modeset_acquire_ctx {
 
 	struct ww_acquire_ctx ww_ctx;
 
-	/**
+	/*
 	 * Contended lock: if a lock is contended you should only call
 	 * drm_modeset_backoff() which drops locks and slow-locks the
 	 * contended lock.
 	 */
 	struct drm_modeset_lock *contended;
 
-	/**
+	/*
 	 * list of held locks (drm_modeset_lock)
 	 */
 	struct list_head locked;
 
-	/**
+	/*
 	 * Trylock mode, use only for panic handlers!
 	 */
 	bool trylock_only;
@@ -70,12 +70,12 @@ struct drm_modeset_acquire_ctx {
  * Used for locking CRTCs and other modeset resources.
  */
 struct drm_modeset_lock {
-	/**
+	/*
 	 * modeset lock
 	 */
 	struct ww_mutex mutex;
 
-	/**
+	/*
 	 * Resources that are locked as part of an atomic update are added
 	 * to a list (so we know what to unlock at the end).
 	 */
Signature · 1 line
2.4.3
Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#2 lore raw
In reply to Danilo Cesar Lemes de Paula
Quoted 25 lines · Danilo Cesar Lemes de Paula

"/**" should be used for kernel-doc documentation only. It causes a warning with the new "in struct body" format.

Cc Randy Dunlap <[email protected]>
Cc Daniel Vetter <[email protected]>
Cc Laurent Pinchart <[email protected]>
Cc Jonathan Corbet <[email protected]>
Cc Herbert Xu <[email protected]>
Cc Stephan Mueller <[email protected]>
Cc Michal Marek <[email protected]>
Cc intel-gfx <[email protected]>
Cc dri-devel <[email protected]>
Cc Graham Whaley <[email protected]>
---
 include/drm/drm_modeset_lock.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
include/drm/drm_modeset_lock.h +0 -0
index 70595ff..c16a3ec 100644

include/drm/drm_modeset_lock.h struct drm_modeset_acquire_ctx { · line 51

Quoted 10 lines
include/drm/drm_modeset_lock.h +1 -1
@@ -43,19 +43,19 @@ struct drm_modeset_acquire_ctx {
 
 	struct ww_acquire_ctx ww_ctx;
 
-	/**
+	/*
 	 * Contended lock: if a lock is contended you should only call
 	 * drm_modeset_backoff() which drops locks and slow-locks the
 	 * contended lock.
 	 */
 	struct drm_modeset_lock *contended;

On second thought this is perfect use-case for the new per-member kerneldoc support we've recently added.

Quoted 13 lines
include/drm/drm_modeset_lock.h +2 -2
-	/**
+	/*
 	 * list of held locks (drm_modeset_lock)
 	 */
 	struct list_head locked;
 
-	/**
+	/*
 	 * Trylock mode, use only for panic handlers!
 	 */
 	bool trylock_only;

include/drm/drm_modeset_lock.h struct drm_modeset_acquire_ctx { · line 75

Quoted 7 lines
include/drm/drm_modeset_lock.h +1 -1
@@ -70,12 +70,12 @@ struct drm_modeset_acquire_ctx {
  * Used for locking CRTCs and other modeset resources.
  */
 struct drm_modeset_lock {
-	/**
+	/*
 	 * modeset lock
 	 */

Same here.
-Daniel

Quoted 10 lines
include/drm/drm_modeset_lock.h +1 -1
 	struct ww_mutex mutex;
 
-	/**
+	/*
 	 * Resources that are locked as part of an atomic update are added
 	 * to a list (so we know what to unlock at the end).
 	 */
Signature · 1 line
2.4.3
Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch