aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorBenno Lossin <[email protected]>2024-03-09 15:54:52 +0000
committerMiguel Ojeda <[email protected]>2024-04-07 20:03:42 +0000
commit8db31d3f3bd5dbc8cf3a22bba04b4b4add7f984e (patch)
treecb1f653d3565258b2f65dd6f0e528021d77cad1a /scripts/generate_rust_analyzer.py
parentrust: macros: allow generic parameter default values in `#[pin_data]` (diff)
downloadkernel-8db31d3f3bd5dbc8cf3a22bba04b4b4add7f984e.tar.gz
kernel-8db31d3f3bd5dbc8cf3a22bba04b4b4add7f984e.zip
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 <[email protected]> Reviewed-by: Martin Rodriguez Reboredo <[email protected]> Reviewed-by: Gary Guo <[email protected]> Reviewed-by: Alice Ryhl <[email protected]> Tested-by: Alice Ryhl <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions