public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] locking/atomic: fix trivial typo in comment
@ 2024-05-14 22:46 Carlos Llamas
  2024-05-14 22:48 ` Kees Cook
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Carlos Llamas @ 2024-05-14 22:46 UTC (permalink / raw)
  To: Mark Rutland, Peter Zijlstra, Kees Cook, Paul E. McKenney,
	Ingo Molnar, Carlos Llamas, Uros Bizjak
  Cc: linux-kernel, kernel-team, stable, Arnd Bergmann

For atomic_sub_and_test() the @i parameter is the value to subtract, not
add. Fix the kerneldoc comment accordingly.

Fixes: ad8110706f38 ("locking/atomic: scripts: generate kerneldoc comments")
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: stable@vger.kernel.org
Signed-off-by: Carlos Llamas <cmllamas@google.com>
---
 include/linux/atomic/atomic-instrumented.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/atomic/atomic-instrumented.h b/include/linux/atomic/atomic-instrumented.h
index debd487fe971..12b558c05384 100644
--- a/include/linux/atomic/atomic-instrumented.h
+++ b/include/linux/atomic/atomic-instrumented.h
@@ -1349,7 +1349,7 @@ atomic_try_cmpxchg_relaxed(atomic_t *v, int *old, int new)
 
 /**
  * atomic_sub_and_test() - atomic subtract and test if zero with full ordering
- * @i: int value to add
+ * @i: int value to subtract
  * @v: pointer to atomic_t
  *
  * Atomically updates @v to (@v - @i) with full ordering.
-- 
2.45.0.rc1.225.g2a3ae87e7f-goog


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-06-05 14:04 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-14 22:46 [PATCH] locking/atomic: fix trivial typo in comment Carlos Llamas
2024-05-14 22:48 ` Kees Cook
2024-05-15  5:04 ` kernel test robot
2024-05-15  8:11 ` Mark Rutland
2024-05-15 13:16   ` Carlos Llamas
2024-05-15 13:37   ` [PATCH v2] locking/atomic: scripts: fix ${atomic}_sub_and_test() kerneldoc Carlos Llamas
2024-05-16  8:45     ` Mark Rutland
2024-05-16  8:53       ` Peter Zijlstra
2024-05-16  9:49         ` Peter Zijlstra
2024-05-16 10:02           ` Mark Rutland
2024-06-05 14:04     ` [tip: locking/urgent] " tip-bot2 for Carlos Llamas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox