public inbox for rust-for-linux@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Remove redundant imports of items re-exported from prelude
@ 2026-01-23 17:19 Gary Guo
  2026-01-23 17:19 ` [PATCH 1/3] gpu: nova-core: remove imports available via prelude Gary Guo
                   ` (4 more replies)
  0 siblings, 5 replies; 20+ messages in thread
From: Gary Guo @ 2026-01-23 17:19 UTC (permalink / raw)
  To: Miguel Ojeda, Boqun Feng, Gary Guo, Björn Roy Baron,
	Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross,
	Danilo Krummrich
  Cc: rust-for-linux

We had a few occurrence of these redundant imports and up until now they're
mostly checked by human reviews.

I have now implemented a new lint in klint, which is able to spot these and
advice on using prelude imports instead. It caught a few existing cases
that slip through the review. Thus, fix them.

Link: https://github.com/Rust-for-Linux/klint/blob/trunk/doc/not_using_prelude.md

Gary Guo (3):
  gpu: nova-core: remove imports available via prelude
  block: rnull: remove imports available via prelude
  samples: rust: remove imports available via prelude

 drivers/block/rnull/configfs.rs         |  1 -
 drivers/block/rnull/rnull.rs            |  3 ---
 drivers/gpu/nova-core/firmware/fwsec.rs |  1 -
 drivers/gpu/nova-core/firmware/gsp.rs   | 12 +++++-------
 drivers/gpu/nova-core/firmware/riscv.rs |  2 --
 drivers/gpu/nova-core/gsp/sequencer.rs  |  8 +-------
 drivers/gpu/nova-core/sbuffer.rs        |  5 +----
 samples/rust/rust_driver_auxiliary.rs   |  1 -
 samples/rust/rust_misc_device.rs        |  2 --
 samples/rust/rust_print_main.rs         |  2 +-
 10 files changed, 8 insertions(+), 29 deletions(-)


base-commit: a0c666c25aeefd16f4b088c6549a6fb6b65a8a1d
-- 
2.51.2


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

end of thread, other threads:[~2026-01-30 14:24 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-23 17:19 [PATCH 0/3] Remove redundant imports of items re-exported from prelude Gary Guo
2026-01-23 17:19 ` [PATCH 1/3] gpu: nova-core: remove imports available via prelude Gary Guo
2026-01-25 21:17   ` Danilo Krummrich
2026-01-27 11:30     ` Danilo Krummrich
2026-01-27 11:44       ` Miguel Ojeda
2026-01-30  4:42   ` Miguel Ojeda
2026-01-23 17:19 ` [PATCH 2/3] block: rnull: " Gary Guo
2026-01-26 18:27   ` Andreas Hindborg
2026-01-26 18:37     ` Miguel Ojeda
2026-01-27 12:51       ` Andreas Hindborg
2026-01-23 17:19 ` [PATCH 3/3] samples: rust: " Gary Guo
2026-01-25 21:17   ` Danilo Krummrich
2026-01-26  9:23   ` Alice Ryhl
2026-01-26 15:02   ` Miguel Ojeda
2026-01-26 16:04     ` Greg Kroah-Hartman
2026-01-27 11:10   ` Miguel Ojeda
2026-01-30 12:45     ` Dirk Behme
2026-01-30 14:24       ` Gary Guo
2026-01-25 21:07 ` [PATCH 0/3] Remove redundant imports of items re-exported from prelude Miguel Ojeda
2026-01-27 16:45 ` (subset) " Jens Axboe

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