rust: sync: allow type of `self` to be `Arc<T>` or variants
authorWedson Almeida Filho <wedsonaf@gmail.com>
Wed, 28 Dec 2022 06:03:41 +0000 (06:03 +0000)
committerMiguel Ojeda <ojeda@kernel.org>
Mon, 16 Jan 2023 21:20:18 +0000 (22:20 +0100)
commit53528772fb5a174c8606cdf0047ac4899ce05be7
tree0d307da0adaab9a81d0579f88c379db967cdf6c9
parent9dc04365500340e6d60a996333d562af747337b1
rust: sync: allow type of `self` to be `Arc<T>` or variants

This allows associated functions whose `self` argument has `Arc<T>` or
variants as their type. This, in turn, allows callers to use the dot
syntax to make calls.

Signed-off-by: Wedson Almeida Filho <wedsonaf@gmail.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Reviewed-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
Acked-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/lib.rs
rust/kernel/sync/arc.rs