diff options
| author | Danilo Krummrich <dakr@kernel.org> | 2026-02-03 00:48:18 +0100 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2026-03-17 23:58:39 +0100 |
| commit | 55e329d0f7a0a92cf998cc6f20df6e46a4d6ab12 (patch) | |
| tree | 05b7f8a8316f91f7f968f7ca4a4b792dbb1d3a86 /arch/v850/kernel/git@git.tavy.me:linux.git | |
| parent | 2b5c6a14b5b4326916ef20b39eea3564ad786e9f (diff) | |
devres: add free_node callback to struct devres_node
Currently, there are three "subclasses" of struct devres_node, which are
struct devres, struct devres_group, struct devres_action.
release_nodes(), which only knows about the base struct devres_node,
assumes that for all "subclasses" struct devres_node is the first member
in the structure and calls kfree() on struct devres_node.
While this technically works, we can still improve semantical
correctness and type safety with a corresponding free_node() callback.
Additionally, we will need this callback soon in the Rust Devres code,
to allocate and free the required memory on the Rust side.
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://patch.msgid.link/20260202235210.55176-6-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'arch/v850/kernel/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
