On Fri, Apr 18, 2025 at 5:37 PM Tamir Duberstein tamird@gmail.com wrote:
This started with a patch that enabled `clippy::ptr_as_ptr`. Benno Lossin suggested I also look into `clippy::ptr_cast_constness` and I discovered `clippy::as_ptr_cast_mut`. This series now enables all 3 lints. It also enables `clippy::as_underscore` which ensures other pointer casts weren't missed.
As a later addition, `clippy::cast_lossless` and `clippy::ref_as_ptr` are also enabled.
This series depends on "rust: retain pointer mut-ness in `container_of!`"[1].
Link: https://lore.kernel.org/all/20250409-container-of-mutness-v1-1-64f472b94534@... [1]
Signed-off-by: Tamir Duberstein tamird@gmail.com
Now that -rc1 is out, could you please spin a v11? There are some new ones in configfs, drm/device, cpufreq, nova-core and mm/virt.
(Please also see my comments in the underscore one).
Thanks!
Cheers, Miguel