diff options
| author | Danilo Krummrich <dakr@kernel.org> | 2024-10-04 17:41:16 +0200 |
|---|---|---|
| committer | Miguel Ojeda <ojeda@kernel.org> | 2024-10-15 22:56:59 +0200 |
| commit | 8373147ce4961665c5700016b1c76299e962d077 (patch) | |
| tree | b49d5aef56beed14572c1053dfeae7838883f1d3 /rust/kernel/sync/condvar.rs | |
| parent | c8cfa8d0c0b10be216861fe904ea68978b1dcc97 (diff) | |
| download | linux-8373147ce4961665c5700016b1c76299e962d077.tar.gz linux-8373147ce4961665c5700016b1c76299e962d077.tar.bz2 linux-8373147ce4961665c5700016b1c76299e962d077.zip | |
rust: treewide: switch to our kernel `Box` type
Now that we got the kernel `Box` type in place, convert all existing
`Box` users to make use of it.
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Reviewed-by: Gary Guo <gary@garyguo.net>
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Link: https://lore.kernel.org/r/20241004154149.93856-13-dakr@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'rust/kernel/sync/condvar.rs')
| -rw-r--r-- | rust/kernel/sync/condvar.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/kernel/sync/condvar.rs b/rust/kernel/sync/condvar.rs index dec2e5ffc919..a1a29c0bdb3a 100644 --- a/rust/kernel/sync/condvar.rs +++ b/rust/kernel/sync/condvar.rs @@ -70,8 +70,8 @@ pub use new_condvar; /// } /// /// /// Allocates a new boxed `Example`. -/// fn new_example() -> Result<Pin<Box<Example>>> { -/// Box::pin_init(pin_init!(Example { +/// fn new_example() -> Result<Pin<KBox<Example>>> { +/// KBox::pin_init(pin_init!(Example { /// value <- new_mutex!(0), /// value_changed <- new_condvar!(), /// }), GFP_KERNEL) |
