diff options
| author | Gary Guo <gary@garyguo.net> | 2026-07-29 16:38:44 +0100 |
|---|---|---|
| committer | Gary Guo <gary@garyguo.net> | 2026-08-03 13:36:42 +0100 |
| commit | 91665820d9bf511e0c3fdf3edb464ba23130dafe (patch) | |
| tree | 3a97abbe1cd64a56b269235351130c71026a1d8d /rust/kernel | |
| parent | c998b661b7c024dfd6dd893927506e32ee8a42c5 (diff) | |
rust: pin-init: merge `__pinned_init` and `__init`
These functions have the same requirements and are also required to execute
the same code. Prevent duplication by merging them to the single function
and document the additional relaxation of `Init::__init` on both the merged
function and the safety requirement of `Init`.
The existing `__pinned_init` function is deprecated and kept for
compatibility for existing users. For `cfg(kernel)`, it is soft-deprecated
for now and will be removed when all users are migrated.
Link: https://patch.msgid.link/20260729-merge-init-v2-2-26adf47109e7@garyguo.net
Signed-off-by: Gary Guo <gary@garyguo.net>
Diffstat (limited to 'rust/kernel')
0 files changed, 0 insertions, 0 deletions
