For ${atomic}_sub_and_test() the @i parameter is the value to subtract,
not add. Fix the typo in the kerneldoc template and generate the headers
with this update.
Fixes: ad8110706f38 ("locking/atomic: scripts: generate kerneldoc comments")
Suggested-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20240515133844.3502360-1-cmllamas@google.com
|
||
|---|---|---|
| .. | ||
| add | ||
| add_negative | ||
| add_unless | ||
| and | ||
| andnot | ||
| cmpxchg | ||
| dec | ||
| dec_and_test | ||
| dec_if_positive | ||
| dec_unless_positive | ||
| inc | ||
| inc_and_test | ||
| inc_not_zero | ||
| inc_unless_negative | ||
| or | ||
| read | ||
| set | ||
| sub | ||
| sub_and_test | ||
| try_cmpxchg | ||
| xchg | ||
| xor | ||