aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorAndreas Hindborg <[email protected]>2025-06-12 13:09:44 +0000
committerMiguel Ojeda <[email protected]>2025-07-14 21:55:24 +0000
commita68a6bef0e75fb9e5aea1399d8538f4e3584dab1 (patch)
tree9f168f8dfb5ae7a615e62b58f10f4a44c4355c35 /rust/helpers/helpers.c
parentrust: types: add FOREIGN_ALIGN to ForeignOwnable (diff)
downloadkernel-a68a6bef0e75fb9e5aea1399d8538f4e3584dab1.tar.gz
kernel-a68a6bef0e75fb9e5aea1399d8538f4e3584dab1.zip
rust: types: require `ForeignOwnable::into_foreign` return non-null
The intended implementations of `ForeignOwnable` will not return null pointers from `into_foreign`, as this would render the implementation of `try_from_foreign` useless. Current users of `ForeignOwnable` rely on `into_foreign` returning non-null pointers. So require `into_foreign` to return non-null pointers. Suggested-by: Benno Lossin <[email protected]> Suggested-by: Alice Ryhl <[email protected]> Signed-off-by: Andreas Hindborg <[email protected]> Reviewed-by: Benno Lossin <[email protected]> Reviewed-by: Alice Ryhl <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions