Re: [PATCH v2 0/5] rust: binder: reduce `as` casts
From: Alice Ryhl
Date: Mon Jun 08 2026 - 10:43:33 EST
On Tue, May 26, 2026 at 8:39 PM Tamir Duberstein <tamird@xxxxxxxxxx> wrote:
>
> Follow up on the treewide Clippy lint series [1]. The Rust Binder driver
> retains local allows for `clippy::ptr_as_ptr`, `clippy::ref_as_ptr`,
> `clippy::as_underscore`, and `clippy::cast_lossless` even though those
> lints are enabled for the rest of the kernel.
>
> Fix the Binder violations and remove those allows one lint at a time.
> The first patch replaces Binder pointer-to-integer conversions with
> calls to the strict provenance APIs now that they are available at the
> Rust MSRV.
>
> Link: https://lore.kernel.org/r/20250615-ptr-as-ptr-v12-0-f43b024581e8@xxxxxxxxx [1]
>
> Signed-off-by: Tamir Duberstein <tamird@xxxxxxxxxx>
Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>