aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorBenno Lossin <[email protected]>2024-03-09 15:54:52 +0000
committerMiguel Ojeda <[email protected]>2024-04-07 22:03:42 +0200
commit8db31d3f3bd5dbc8cf3a22bba04b4b4add7f984e (patch)
treecb1f653d3565258b2f65dd6f0e528021d77cad1a /lib/memory-notifier-error-inject.c
parent22eed6068d76d1d9672f33334740657208a91483 (diff)
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 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions