Skip to content

rust: aref: make AlwaysRefCounted::inc_ref an associated function#1017

Open
blktests-ci[bot] wants to merge 1 commit into
linus-master_basefrom
series/1117606=>linus-master
Open

rust: aref: make AlwaysRefCounted::inc_ref an associated function#1017
blktests-ci[bot] wants to merge 1 commit into
linus-master_basefrom
series/1117606=>linus-master

Conversation

@blktests-ci

@blktests-ci blktests-ci Bot commented Jun 28, 2026

Copy link
Copy Markdown

Pull request for series with
subject: rust: aref: make AlwaysRefCounted::inc_ref an associated function
version: 5
url: https://patchwork.kernel.org/project/linux-block/list/?series=1117606

@blktests-ci

blktests-ci Bot commented Jun 28, 2026

Copy link
Copy Markdown
Author

Upstream branch: 4edcdef
series: https://patchwork.kernel.org/project/linux-block/list/?series=1117606
version: 5

@blktests-ci

blktests-ci Bot commented Jun 28, 2026

Copy link
Copy Markdown
Author

Upstream branch: 4edcdef
series: https://patchwork.kernel.org/project/linux-block/list/?series=1117635
version: 7

@blktests-ci blktests-ci Bot added V7 and removed V5 labels Jun 28, 2026
@blktests-ci blktests-ci Bot force-pushed the series/1117606=>linus-master branch from c1b14d5 to 0cf4897 Compare June 28, 2026 10:45
@blktests-ci

blktests-ci Bot commented Jun 29, 2026

Copy link
Copy Markdown
Author

Upstream branch: 4edcdef
series: https://patchwork.kernel.org/project/linux-block/list/?series=1117635
version: 7

@blktests-ci blktests-ci Bot force-pushed the series/1117606=>linus-master branch from 0cf4897 to 2b392d4 Compare June 29, 2026 04:52
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 4cc45a3 to 90ffd56 Compare June 29, 2026 17:14
`AlwaysRefCounted::inc_ref` is a function that shouldn't be called lightly.

To prevent accidentally calling it, change `inc_ref` to be an associated function.

Modify all `AlwaysRefCounted` implementors to work with this change.

Suggested-by: Benno Lossin <lossin@kernel.org>
Link: Rust-for-Linux/linux#1177
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Trevor Chan <trev@trevrosa.dev>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
@blktests-ci

blktests-ci Bot commented Jun 29, 2026

Copy link
Copy Markdown
Author

Upstream branch: dc59e4f
series: https://patchwork.kernel.org/project/linux-block/list/?series=1117635
version: 7

@blktests-ci blktests-ci Bot force-pushed the series/1117606=>linus-master branch from 2b392d4 to f7fab90 Compare June 29, 2026 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant