From: Mark Rutland <mark.rutland@arm.com>
To: Carlos Llamas <cmllamas@google.com>
Cc: Peter Zijlstra <peterz@infradead.org>,
Kees Cook <keescook@chromium.org>,
"Paul E. McKenney" <paulmck@kernel.org>,
Ingo Molnar <mingo@kernel.org>, Uros Bizjak <ubizjak@gmail.com>,
linux-kernel@vger.kernel.org, kernel-team@android.com,
stable@vger.kernel.org, Arnd Bergmann <arnd@arndb.de>
Subject: Re: [PATCH] locking/atomic: fix trivial typo in comment
Date: Wed, 15 May 2024 10:11:29 +0200 [thread overview]
Message-ID: <ZkRuMcao7lusrypL@J2N7QTR9R3> (raw)
In-Reply-To: <20240514224625.3280818-1-cmllamas@google.com>
Hi Carlos,
On Tue, May 14, 2024 at 10:46:03PM +0000, Carlos Llamas wrote:
> 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
Whoops; sorry about that.
The atomic headers are generated, and this kerneldoc comment is
generated from the template in scripts/atomic/kerneldoc/sub_and_test
You'll need to modify that then run:
sh scripts/atomic/gen-atomics.sh
... to regenerate all the affected instances of ${atomic}_sub_and_test()
Thanks,
Mark.
next prev parent reply other threads:[~2024-05-15 8:11 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZkRuMcao7lusrypL@J2N7QTR9R3 \
--to=mark.rutland@arm.com \
--cc=arnd@arndb.de \
--cc=cmllamas@google.com \
--cc=keescook@chromium.org \
--cc=kernel-team@android.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=paulmck@kernel.org \
--cc=peterz@infradead.org \
--cc=stable@vger.kernel.org \
--cc=ubizjak@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox