[PATCH 11/33] rust: alloc: simplify with `NonNull::add()` now that it is stable

Danilo Krummrich dakr at kernel.org
Wed Apr 1 05:28:42 PDT 2026


On Wed Apr 1, 2026 at 1:45 PM CEST, 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>

Acked-by: Danilo Krummrich <dakr at kernel.org>



More information about the linux-riscv mailing list