diff options
author | 2025-01-07 13:25:10 +0100 | |
---|---|---|
committer | 2025-01-10 15:49:06 +0100 | |
commit | f1725160fd28a2e65e47166637aa44856a1a7f89 (patch) | |
tree | c18de29fa84d957ef2f1b80cc9f6deb96fc77137 /scripts/lib/kdoc/kdoc_parser.py | |
parent | drivers: core: remove device_link argument from class_compat_[create|remove]_link (diff) | |
download | linux-rng-f1725160fd28a2e65e47166637aa44856a1a7f89.tar.xz linux-rng-f1725160fd28a2e65e47166637aa44856a1a7f89.zip |
devres: add devm_remove_action_nowarn()
devm_remove_action() warns if the action to remove does not exist
(anymore).
The Rust devres abstraction, however, has a use-case to call
devm_remove_action() at a point where it can't be guaranteed that the
corresponding action hasn't been released yet.
In particular, an instance of `Devres<T>` may be dropped after the
action has been released. So far, `Devres<T>` worked around this by
keeping the inner type alive.
Hence, add devm_remove_action_nowarn(), which returns an error code if
the action has been removed already.
A subsequent patch uses devm_remove_action_nowarn() to remove the action
when `Devres<T>` is dropped.
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Link: https://lore.kernel.org/r/20250107122609.8135-1-dakr@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions