[PATCH 11/33] rust: alloc: simplify with `NonNull::add()` now that it is stable
Tamir Duberstein
tamird at kernel.org
Wed Apr 1 15:59:04 PDT 2026
On Wed, 01 Apr 2026 13:45:18 +0200, Miguel Ojeda <ojeda at kernel.org> 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.
This description is inconsistent with the previous one which had
citations for both the feature (function in this case) and the feature
in which it became stable (available in this case). I don't prefer
either style in particular, just that things are consistent.
Reviewed-by: Tamir Duberstein <tamird at kernel.org>
--
Tamir Duberstein <tamird at kernel.org>
More information about the linux-arm-kernel
mailing list