]> git.ipfire.org Git - thirdparty/linux.git/commit
rust: atomic: Update a safety comment in impl of `fetch_add()`
authorAndreas Hindborg <a.hindborg@kernel.org>
Tue, 3 Mar 2026 20:17:01 +0000 (12:17 -0800)
committerPeter Zijlstra <peterz@infradead.org>
Sun, 8 Mar 2026 10:06:51 +0000 (11:06 +0100)
commitb91d5d4bcf1266257a9e0199e1b4ad7fa8771baa
tree53d20378872ad8a1001f9b2c9d0fd75a48e0e710
parent0b864375d93d1509821def9c4b15f845d314a5d2
rust: atomic: Update a safety comment in impl of `fetch_add()`

The safety comment used in the implementation of `fetch_add()` could be
read as just saying something it is true without justifying it. Update
the safety comment to include justification.

Suggested-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
Signed-off-by: Boqun Feng <boqun@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://patch.msgid.link/20260220-atomic-sub-v3-3-e63cbed1d2aa@kernel.org
Link: https://patch.msgid.link/20260303201701.12204-14-boqun@kernel.org
rust/kernel/sync/atomic/internal.rs