[PATCH v3 0/3] rust: atomic: add `fetch_sub` and update docs

Andreas Hindborg posted 3 patches 1 month, 3 weeks ago
rust/kernel/sync/atomic.rs          | 53 ++++++++++++++++++++++++++++++++-----
rust/kernel/sync/atomic/internal.rs |  7 ++++-
2 files changed, 53 insertions(+), 7 deletions(-)
[PATCH v3 0/3] rust: atomic: add `fetch_sub` and update docs
Posted by Andreas Hindborg 1 month, 3 weeks ago
Add `fetch_sub` and improve documentation and safety comments of of
`fetch_add`.

Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
---
Changes in v3:
- Remove a spurious line feed.
- Add a patch to update a safety comment for `fetch_add`.
- Update safety comment in `fetch_sub` implementation.
- Link to v2: https://msgid.link/20260219-atomic-sub-v2-0-8bd99cadf26d@kernel.org

Changes in v2:
- Update example to be more clear.
- Add a patch that updates documentation for `fetch_add`.
- Link to v1: https://lore.kernel.org/r/20260128-atomic-sub-v1-1-f8c6abcbb067@kernel.org

---
Andreas Hindborg (3):
      rust: atomic: add fetch_sub
      rust: atomic: update documentation for `fetch_add`
      rust: atomic: update a safety comment in impl of `fetch_add`

 rust/kernel/sync/atomic.rs          | 53 ++++++++++++++++++++++++++++++++-----
 rust/kernel/sync/atomic/internal.rs |  7 ++++-
 2 files changed, 53 insertions(+), 7 deletions(-)
---
base-commit: 63804fed149a6750ffd28610c5c1c98cce6bd377
change-id: 20260128-atomic-sub-2ff15962df12

Best regards,
-- 
Andreas Hindborg <a.hindborg@kernel.org>
Re: [PATCH v3 0/3] rust: atomic: add `fetch_sub` and update docs
Posted by Boqun Feng 1 month, 3 weeks ago
On Fri, Feb 20, 2026 at 09:06:19AM +0100, Andreas Hindborg wrote:
> Add `fetch_sub` and improve documentation and safety comments of of
> `fetch_add`.
> 
> Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
> ---

I queued the whole series (with some format improvement per tip:
Documentation/process/maintainer-tip.rst). I also added a Suggested-by
from Miguel on patch #3 (let me know if you or Miguel disagree with
that) and appreciate Miguel's suggestion and your effort to apply it.

Thank you all!

Regards,
Boqun

> Changes in v3:
> - Remove a spurious line feed.
> - Add a patch to update a safety comment for `fetch_add`.
> - Update safety comment in `fetch_sub` implementation.
> - Link to v2: https://msgid.link/20260219-atomic-sub-v2-0-8bd99cadf26d@kernel.org
> 
> Changes in v2:
> - Update example to be more clear.
> - Add a patch that updates documentation for `fetch_add`.
> - Link to v1: https://lore.kernel.org/r/20260128-atomic-sub-v1-1-f8c6abcbb067@kernel.org
> 
> ---
> Andreas Hindborg (3):
>       rust: atomic: add fetch_sub
>       rust: atomic: update documentation for `fetch_add`
>       rust: atomic: update a safety comment in impl of `fetch_add`
> 
>  rust/kernel/sync/atomic.rs          | 53 ++++++++++++++++++++++++++++++++-----
>  rust/kernel/sync/atomic/internal.rs |  7 ++++-
>  2 files changed, 53 insertions(+), 7 deletions(-)
> ---
> base-commit: 63804fed149a6750ffd28610c5c1c98cce6bd377
> change-id: 20260128-atomic-sub-2ff15962df12
> 
> Best regards,
> -- 
> Andreas Hindborg <a.hindborg@kernel.org>
> 
>
Re: [PATCH v3 0/3] rust: atomic: add `fetch_sub` and update docs
Posted by Miguel Ojeda 1 month, 3 weeks ago
On Mon, Feb 23, 2026 at 7:04 PM Boqun Feng <boqun@kernel.org> wrote:
>
> I queued the whole series (with some format improvement per tip:
> Documentation/process/maintainer-tip.rst). I also added a Suggested-by
> from Miguel on patch #3 (let me know if you or Miguel disagree with
> that) and appreciate Miguel's suggestion and your effort to apply it.

Thanks Boqun!

Cheers,
Miguel
Re: [PATCH v3 0/3] rust: atomic: add `fetch_sub` and update docs
Posted by Andreas Hindborg 1 month, 3 weeks ago
"Boqun Feng" <boqun@kernel.org> writes:

> On Fri, Feb 20, 2026 at 09:06:19AM +0100, Andreas Hindborg wrote:
>> Add `fetch_sub` and improve documentation and safety comments of of
>> `fetch_add`.
>>
>> Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
>> ---
>
> I queued the whole series (with some format improvement per tip:
> Documentation/process/maintainer-tip.rst). I also added a Suggested-by
> from Miguel on patch #3 (let me know if you or Miguel disagree with
> that) and appreciate Miguel's suggestion and your effort to apply it.

Thanks for adding the proper tags!

Best regards,
Andreas Hindborg