Files
linux/rust/kernel
Andreas Hindborg a68a6bef0e 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 <lossin@kernel.org>
Suggested-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
Reviewed-by: Benno Lossin <lossin@kernel.org>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20250612-pointed-to-v3-2-b009006d86a1@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2025-07-14 23:55:24 +02:00
..
2025-06-22 23:09:32 +02:00
2025-06-22 23:08:42 +02:00
2025-06-22 23:08:42 +02:00
2025-06-22 23:08:42 +02:00
2025-06-22 23:09:17 +02:00
2025-03-16 21:59:19 +01:00
2025-06-22 23:09:17 +02:00
2024-10-08 15:44:36 +02:00
2025-06-22 23:08:42 +02:00
2025-06-22 23:09:32 +02:00
2025-04-29 15:31:07 +02:00
2024-11-04 16:21:44 -05:00