diff options
| author | Benno Lossin <[email protected]> | 2025-03-08 11:04:52 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2025-03-16 20:59:19 +0000 |
| commit | 31547c988257b3ddd1badb23c166c42b5310735c (patch) | |
| tree | b1cfa07f1f422cafe0b6ca48ebb9f92699b835f7 /rust/macros/module.rs | |
| parent | rust: pin-init: fix documentation links (diff) | |
| download | kernel-31547c988257b3ddd1badb23c166c42b5310735c.tar.gz kernel-31547c988257b3ddd1badb23c166c42b5310735c.zip | |
rust: pin-init: remove kernel-crate dependency
In order to make pin-init a standalone crate, remove dependencies on
kernel-specific code such as `ScopeGuard` and `KBox`.
`ScopeGuard` is only used in the `[pin_]init_array_from_fn` functions
and can easily be replaced by a primitive construct.
`KBox` is only used for type variance of unsized types and can also
easily be replaced.
Signed-off-by: Benno Lossin <[email protected]>
Reviewed-by: Fiona Behrens <[email protected]>
Reviewed-by: Andreas Hindborg <[email protected]>
Tested-by: Andreas Hindborg <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/macros/module.rs')
0 files changed, 0 insertions, 0 deletions
