public inbox for rust-for-linux@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Fix all clippy warnings in drm-rust-next
@ 2026-04-04 21:28 John Hubbard
  2026-04-04 21:28 ` [PATCH v2 1/3] gpu: nova-core: vbios: use from_le_bytes() for PCI ROM header parsing John Hubbard
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: John Hubbard @ 2026-04-04 21:28 UTC (permalink / raw)
  To: Danilo Krummrich, Alexandre Courbot
  Cc: Joel Fernandes, Timur Tabi, Alistair Popple, Eliot Courtney,
	Shashank Sharma, Zhi Wang, David Airlie, Simona Vetter,
	Bjorn Helgaas, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo,
	Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl,
	Trevor Gross, rust-for-linux, LKML, John Hubbard

This series fixes all remaining clippy warnings when building
drm-rust-next with CLIPPY=1, using rustc 1.85.0. There are a few clippy
lints involved, spread across nova-core and kernel crate code:

* clippy::precedence in nova-core vbios PCI ROM header parsing (2 warnings)
* clippy::precedence in nova-core read_sysmem_flush_page_ga100() (1 warning)
* clippy::incompatible_msrv for slice_ptr_len in rust/kernel/ptr (4 warnings)

v1 is here:
  https://lore.kernel.org/20260404025821.386514-1-jhubbard@nvidia.com

Changes in v2:
* Split the vbios from_le_bytes() cleanup into its own patch, per Alex.

* New patch: silence clippy::incompatible_msrv false positives in
  rust/kernel/ptr.

* Expanded the scope of the fixes: now it makes the entire drm-rust-next
  kernel clippy-clean, at least for the toolchain that I tested on.


John Hubbard (3):
  gpu: nova-core: vbios: use from_le_bytes() for PCI ROM header parsing
  gpu: nova-core: fb: fix clippy::precedence warning in
    read_sysmem_flush_page_ga100()
  rust: ptr: allow clippy::incompatible_msrv for slice_ptr_len

 drivers/gpu/nova-core/fb/hal/ga100.rs | 7 ++++---
 drivers/gpu/nova-core/vbios.rs        | 7 +------
 rust/kernel/ptr.rs                    | 1 +
 rust/kernel/ptr/projection.rs         | 3 +++
 4 files changed, 9 insertions(+), 9 deletions(-)


base-commit: 7c50d748b4a635bc39802ea3f6b120e66b1b9067
-- 
2.53.0


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2026-04-06  5:43 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-04 21:28 [PATCH v2 0/3] Fix all clippy warnings in drm-rust-next John Hubbard
2026-04-04 21:28 ` [PATCH v2 1/3] gpu: nova-core: vbios: use from_le_bytes() for PCI ROM header parsing John Hubbard
2026-04-04 21:28 ` [PATCH v2 2/3] gpu: nova-core: fb: fix clippy::precedence warning in read_sysmem_flush_page_ga100() John Hubbard
2026-04-04 21:35   ` John Hubbard
2026-04-05 11:42     ` Alexandre Courbot
2026-04-05 12:13       ` Miguel Ojeda
2026-04-05 12:32       ` Danilo Krummrich
2026-04-06  0:38         ` Alexandre Courbot
2026-04-04 21:28 ` [PATCH v2 3/3] rust: ptr: allow clippy::incompatible_msrv for slice_ptr_len John Hubbard
2026-04-04 21:46   ` Miguel Ojeda
2026-04-04 21:49     ` John Hubbard
2026-04-05 23:22       ` Miguel Ojeda
2026-04-06  5:43         ` John Hubbard
2026-04-04 22:09     ` Gary Guo
2026-04-05 23:22       ` Miguel Ojeda
2026-04-05 15:16 ` [PATCH v2 0/3] Fix all clippy warnings in drm-rust-next Danilo Krummrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox