]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
locking/barrier: Use correct parameter names
authorRandy Dunlap <rdunlap@infradead.org>
Thu, 30 Apr 2026 23:39:27 +0000 (16:39 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 5 May 2026 10:50:47 +0000 (12:50 +0200)
Use the correct parameter names in kernel-doc comments to avoid
warnings:

Warning: include/asm-generic/barrier.h:245 function parameter 'cond_expr'
 not described in 'smp_cond_load_relaxed'
Warning: include/asm-generic/barrier.h:267 function parameter 'cond_expr'
 not described in 'smp_cond_load_acquire'

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20260430233927.2620050-1-rdunlap@infradead.org
include/asm-generic/barrier.h

index d4f581c1e21da54f340bdfb8a4e846e59989e3aa..b99cb57dfccccae191b8181ab14cb566e2fe01d1 100644 (file)
@@ -235,7 +235,7 @@ do {                                                                        \
 /**
  * smp_cond_load_relaxed() - (Spin) wait for cond with no ordering guarantees
  * @ptr: pointer to the variable to wait on
- * @cond: boolean expression to wait for
+ * @cond_expr: boolean expression to wait for
  *
  * Equivalent to using READ_ONCE() on the condition variable.
  *
@@ -259,7 +259,7 @@ do {                                                                        \
 /**
  * smp_cond_load_acquire() - (Spin) wait for cond with ACQUIRE ordering
  * @ptr: pointer to the variable to wait on
- * @cond: boolean expression to wait for
+ * @cond_expr: boolean expression to wait for
  *
  * Equivalent to using smp_load_acquire() on the condition variable but employs
  * the control dependency of the wait to reduce the barrier on many platforms.