Skip to contentSkip to conversation

locking/rtmutex: Use struct keyword in kernel-doc comment

PATCH Applied Randy Dunlap 3 participants 3 messages Jan 11, 2025 – Mar 3, 2025 Locking primitives

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 locking/rtmutex: Use struct keyword in kernel-doc comment

Add the "struct" keyword to prevent a kernel-doc warning:

rtmutex_common.h:67: warning: cannot understand function prototype: 'struct rt_wake_q_head '

Cc Peter Zijlstra <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Will Deacon <[email protected]>
Cc Waiman Long <[email protected]>
Cc Boqun Feng <[email protected]>
---
 kernel/locking/rtmutex_common.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/locking/rtmutex_common.h +2 -2
@@ -59,8 +59,8 @@ struct rt_mutex_waiter {
 };
 
 /**
- * rt_wake_q_head - Wrapper around regular wake_q_head to support
- *		    "sleeping" spinlocks on RT
+ * struct rt_wake_q_head - Wrapper around regular wake_q_head to support
+ *			   "sleeping" spinlocks on RT
  * @head:		The regular wake_q_head for sleeping lock variants
  * @rtlock_task:	Task pointer for RT lock (spin/rwlock) wakeups
  */
Acked-by on v1 1/1
#1 lore raw
Quoted 18 lines · Randy Dunlap

Add the "struct" keyword to prevent a kernel-doc warning:

rtmutex_common.h:67: warning: cannot understand function prototype: 'struct rt_wake_q_head '

Cc Peter Zijlstra <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Will Deacon <[email protected]>
Cc Waiman Long <[email protected]>
Cc Boqun Feng <[email protected]>
---
  kernel/locking/rtmutex_common.h |    4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

kernel/locking/rtmutex_common.h struct rt_mutex_waiter { · line 66

Quoted 10 lines
kernel/locking/rtmutex_common.h +2 -2
@@ -59,8 +59,8 @@ struct rt_mutex_waiter {
  };
 
  /**
- * rt_wake_q_head - Wrapper around regular wake_q_head to support
- *		    "sleeping" spinlocks on RT
+ * struct rt_wake_q_head - Wrapper around regular wake_q_head to support
+ *			   "sleeping" spinlocks on RT
   * @head:		The regular wake_q_head for sleeping lock variants
   * @rtlock_task:	Task pointer for RT lock (spin/rwlock) wakeups
   */
merge bot Applied
#2 lore raw
In reply to Randy Dunlap
The following commit has been merged into the locking/core branch of tip:

The following commit has been merged into the locking/core branch of tip:

Commit-ID:     5ddd09863c676935c18c8a13f5afb6d9992cbdeb
Gitweb:        https://git.kernel.org/tip/5ddd09863c676935c18c8a13f5afb6d9992cbdeb
Author:        Randy Dunlap <[email protected]>
AuthorDate:    Fri, 10 Jan 2025 22:30:40 -08:00
Committer:     Boqun Feng <[email protected]>
CommitterDate: Sun, 23 Feb 2025 18:24:46 -08:00

locking/rtmutex: Use struct keyword in kernel-doc comment

Add the "struct" keyword to prevent a kernel-doc warning:

rtmutex_common.h:67: warning: cannot understand function prototype: 'struct rt_wake_q_head '

---
 kernel/locking/rtmutex_common.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/locking/rtmutex_common.h +2 -2
index c38a2d2..78dd3d8 100644
@@ -59,8 +59,8 @@ struct rt_mutex_waiter {
 };
 
 /**
- * rt_wake_q_head - Wrapper around regular wake_q_head to support
- *		    "sleeping" spinlocks on RT
+ * struct rt_wake_q_head - Wrapper around regular wake_q_head to support
+ *			   "sleeping" spinlocks on RT
  * @head:		The regular wake_q_head for sleeping lock variants
  * @rtlock_task:	Task pointer for RT lock (spin/rwlock) wakeups
  */