rust: aref: make AlwaysRefCounted::inc_ref an associated function - #1017
rust: aref: make AlwaysRefCounted::inc_ref an associated function#1017blktests-ci[bot] wants to merge 1 commit into
AlwaysRefCounted::inc_ref an associated function#1017Conversation
|
Upstream branch: 4edcdef |
|
Upstream branch: 4edcdef |
c1b14d5 to
0cf4897
Compare
|
Upstream branch: 4edcdef |
0cf4897 to
2b392d4
Compare
4cc45a3 to
90ffd56
Compare
|
Upstream branch: dc59e4f |
2b392d4 to
f7fab90
Compare
90ffd56 to
d52f35a
Compare
|
Upstream branch: 87320be |
f7fab90 to
00753ac
Compare
d52f35a to
a644c13
Compare
|
Upstream branch: 8cdeaa5 |
00753ac to
4390671
Compare
a644c13 to
a2204c3
Compare
|
Upstream branch: 0e35b9b |
`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>
4390671 to
f0e957a
Compare
Pull request for series with
subject: rust: aref: make
AlwaysRefCounted::inc_refan associated functionversion: 5
url: https://patchwork.kernel.org/project/linux-block/list/?series=1117606