aboutsummaryrefslogtreecommitdiffstats
path: root/rust/pin-init/examples/static_init.rs
diff options
context:
space:
mode:
authorBenno Lossin <[email protected]>2025-05-23 14:51:02 +0000
committerBenno Lossin <[email protected]>2025-06-11 19:13:57 +0000
commitec87ec35ca8bd61bfc1200224d332b4573b9dafa (patch)
tree03b481f0cb9bef8216c02d2b801e197ebbe33a46 /rust/pin-init/examples/static_init.rs
parentrust: pin-init: change `impl Zeroable for Option<NonNull<T>>` to `ZeroableOpt... (diff)
downloadkernel-ec87ec35ca8bd61bfc1200224d332b4573b9dafa.tar.gz
kernel-ec87ec35ca8bd61bfc1200224d332b4573b9dafa.zip
rust: pin-init: implement `ZeroableOption` for function pointers with up to 20 arguments
`Option<[unsafe] [extern "abi"] fn(...args...) -> ret>` is documented [1] to also have the `None` variant equal all zeroes. Link: https://doc.rust-lang.org/stable/std/option/index.html#representation [1] Link: https://github.com/Rust-for-Linux/pin-init/pull/56/commits/b6c1ab4fb3699765f81ae512ecac5a2f032d8d51 Link: https://lore.kernel.org/all/[email protected] Signed-off-by: Benno Lossin <[email protected]>
Diffstat (limited to 'rust/pin-init/examples/static_init.rs')
0 files changed, 0 insertions, 0 deletions