summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/tasks.py
diff options
context:
space:
mode:
authorBenno Lossin <benno.lossin@proton.me>2025-03-08 14:04:25 +0300
committerMiguel Ojeda <ojeda@kernel.org>2025-03-16 23:59:18 +0300
commitc2ddbdbb8a66f43f881c5fe1b8cd615b6dce5c40 (patch)
tree70c3e5ea1cf2556a8340634b97ba7592926b8fd7 /scripts/gdb/linux/tasks.py
parent84837cf6fa541150a3012ea233225a7ecfa8771a (diff)
downloadlinux-c2ddbdbb8a66f43f881c5fe1b8cd615b6dce5c40.tar.xz
rust: pin-init: call `try_[pin_]init!` from `[pin_]init!` instead of `__init_internal!`
The `[pin_]init!` macros have the same behavior as the `try_[pin_]init!` macros, except that they set the error type to `Infallible`. Instead of calling the primitive `__init_internal!` with the correct parameters, the same can thus be achieved by calling `try_[pin_]init!`. Since this makes it more clear what their behavior is, simplify the implementations of `[pin_]init!`. Signed-off-by: Benno Lossin <benno.lossin@proton.me> Reviewed-by: Fiona Behrens <me@kloenk.dev> Reviewed-by: Andreas Hindborg <a.hindborg@kernel.org> Tested-by: Andreas Hindborg <a.hindborg@kernel.org> Link: https://lore.kernel.org/r/20250308110339.2997091-7-benno.lossin@proton.me Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions