linux/rust
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
..
alloc
bindings
kernel rust: workqueue: add #[pin_data] to Work 2024-04-07 22:03:42 +02:00
macros rust: macros: allow generic parameter default values in #[pin_data] 2024-04-07 22:03:42 +02:00
uapi
.gitignore
bindgen_parameters
build_error.rs
compiler_builtins.rs
exports.c
helpers.c
Makefile