Skip to content

replace `allow(...)` lints with `expect(...)`

Onur Özkan linux-kselftest linux-pm lkml rust-for-linux 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest6 patches 10 repliesIn review
  2. v33 patches 11 repliesSuperseded
  3. v23 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches2 repliesSuperseded

Changes in v4 from the cover letter

- The first patch from previous versions is now
broken down into multiple smaller patches.
- #![expect(dead_code)] is reverted from
rust/kernel/opp.rs as it failed on the
kernel test bot (see [1] for more).

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6rust: switch to `#[expect(...)]` in core modulesrust/kernel/alloc/allocator_test.rs rust/kernel/error.rs rust/kernel/types.rs +1 more+4 -41 reply
2/6rust: switch to `#[expect(...)]` in init and kunitrust/kernel/init.rs rust/kernel/kunit.rs+4 -44 replies
3/6drivers: gpu: switch to `#[expect(...)]` in nova-core/regs.rsdrivers/gpu/nova-core/regs.rs+1 -11 reply
4/6rust: switch to `#[expect(...)]` in devres, driver and ioctlrust/kernel/devres.rs rust/kernel/driver.rs rust/kernel/drm/ioctl.rs+6 -60 replies
5/6rust: remove `#[allow(clippy::unnecessary_cast)]`rust/kernel/error.rs+0 -11 reply
6/6rust: remove `#[allow(clippy::non_send_fields_in_send_ty)]`rust/kernel/cpufreq.rs+0 -11 reply

Reviews trailers per patch

3 of 6 patches have a Reviewed-by or Acked-by.

PatchTrevor Gross
1/6
2/6R-b
3/6R-b
4/6
5/6R-b
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/6] replace `allow(...)` lints with `expect(...)`

Changes in v4:
- The first patch from previous versions is now
broken down into multiple smaller patches.
- #![expect(dead_code)] is reverted from
rust/kernel/opp.rs as it failed on the
kernel test bot (see [1] for more).

Onur Özkan (6):
rust: switch to #[expect(...)] in core modules
rust: switch to #[expect(...)] in init and kunit
drivers: gpu: switch to #[expect(...)] in nova-core/regs.rs
rust: switch to #[expect(...)] in devres, driver and ioctl
rust: remove #[allow(clippy::unnecessary_cast)]
rust: remove #[allow(clippy::non_send_fields_in_send_ty)]

 drivers/gpu/nova-core/regs.rs       | 2 +-
 rust/kernel/alloc/allocator_test.rs | 2 +-
 rust/kernel/cpufreq.rs              | 1 -
 rust/kernel/devres.rs               | 2 +-
 rust/kernel/driver.rs               | 2 +-
 rust/kernel/drm/ioctl.rs            | 8 ++++----
 rust/kernel/error.rs                | 3 +--
 rust/kernel/init.rs                 | 6 +++---
 rust/kernel/kunit.rs                | 2 +-
 rust/kernel/types.rs                | 2 +-
 rust/macros/helpers.rs              | 2 +-
 11 files changed, 15 insertions(+), 17 deletions(-)

--
2.50.0