]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rust: pin-init: move impl `Zeroable` for `Opaque` and `Option<KBox<T>>` into the...
authorBenno Lossin <benno.lossin@proton.me>
Sat, 8 Mar 2025 11:04:38 +0000 (11:04 +0000)
committerMiguel Ojeda <ojeda@kernel.org>
Sun, 16 Mar 2025 20:59:18 +0000 (21:59 +0100)
commit9d29c682f00c3d8dd5727f6a350c4f6ecccc3913
tree5aba0b40a6f65384b85c042beac47c8247ff0234
parent114ca41fe7922ce85fcac30fa2b06b42b4956520
rust: pin-init: move impl `Zeroable` for `Opaque` and `Option<KBox<T>>` into the kernel crate

In order to make pin-init a standalone crate, move kernel-specific code
directly into the kernel crate. Since `Opaque<T>` and `KBox<T>` are part
of the kernel, move their `Zeroable` implementation into the kernel
crate.

Signed-off-by: Benno Lossin <benno.lossin@proton.me>
Tested-by: Andreas Hindborg <a.hindborg@kernel.org>
Reviewed-by: Fiona Behrens <me@kloenk.dev>
Link: https://lore.kernel.org/r/20250308110339.2997091-10-benno.lossin@proton.me
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/alloc/kbox.rs
rust/kernel/types.rs
rust/pin-init/src/lib.rs