[PATCH 11/33] rust: alloc: simplify with `NonNull::add()` now that it is stable
Gary Guo
gary at garyguo.net
Wed Apr 1 07:12:02 PDT 2026
On Wed Apr 1, 2026 at 12:45 PM BST, Miguel Ojeda wrote:
> Currently we need to go through raw pointers and then re-create the
> `NonNull` from the result of offsetting the raw pointer.
>
> Thus, now that we bump the Rust minimum version, simplify using
> `NonNull::add()` and clean the TODO note.
>
> Signed-off-by: Miguel Ojeda <ojeda at kernel.org>
Reviewed-by: Gary Guo <gary at garyguo.net>
> ---
> rust/kernel/alloc/allocator/iter.rs | 8 +-------
> 1 file changed, 1 insertion(+), 7 deletions(-)
More information about the linux-riscv
mailing list