Files
linux/rust/kernel
Benno Lossin 8db31d3f3b rust: workqueue: add #[pin_data] to Work
The previous two patches made it possible to add `#[pin_data]` on
structs with default generic parameter values.
This patch makes `Work` use `#[pin_data]` and removes an invocation of
`pin_init_from_closure`. This function is intended as a low level manual
escape hatch, so it is better to rely on the safe `pin_init!` macro.

Signed-off-by: Benno Lossin <benno.lossin@proton.me>
Reviewed-by: Martin Rodriguez Reboredo <yakoyoku@gmail.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Tested-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20240309155243.482334-3-benno.lossin@proton.me
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2024-04-07 22:03:42 +02:00
..
2024-01-27 14:28:00 +00:00
2023-05-31 17:35:03 +02:00
2024-02-18 21:22:27 +01:00
2023-12-21 20:54:17 +01:00
2024-03-29 20:12:30 +01:00
2023-08-21 14:31:48 +02:00
2023-12-21 20:54:17 +01:00
2023-05-31 17:35:03 +02:00
2024-02-18 21:22:27 +01:00