linux-kselftest.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] replace `allow(...)` lints with `expect(...)`
@ 2025-06-27  6:53 Onur Özkan
  2025-06-27  6:53 ` [PATCH v2 1/3] replace `#[allow(...)]` with `#[expect(...)]` Onur Özkan
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Onur Özkan @ 2025-06-27  6:53 UTC (permalink / raw)
  To: rust-for-linux, linux-kernel, linux-pm, linux-kselftest,
	kunit-dev
  Cc: airlied, simona, ojeda, alex.gaynor, boqun.feng, gary, bjorn3_gh,
	lossin, a.hindborg, aliceryhl, tmgross, rafael, viresh.kumar,
	gregkh, maarten.lankhorst, mripard, tzimmermann, davidgow, nm,
	Onur Özkan

Changes in v2:
  - Removed lints are not replaced with `expect` in the first diff.
  - Removals are done in separate diffs for each.

The `#[allow(clippy::non_send_fields_in_send_ty)]` removal was tested
on 1.81 and clippy was still happy with it. I couldn't test it on 1.78
because when I go below 1.81 `menuconfig` no longer shows the Rust option.
And any manual changes I make to `.config` are immediately reverted on
`make` invocations.

Onur Özkan (3):
  replace `#[allow(...)]` with `#[expect(...)]`
  rust: remove `#[allow(clippy::unnecessary_cast)]`
  rust: remove `#[allow(clippy::non_send_fields_in_send_ty)]`

 drivers/gpu/nova-core/regs.rs       | 2 +-
 rust/compiler_builtins.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/opp.rs                  | 4 ++--
 rust/kernel/types.rs                | 2 +-
 rust/macros/helpers.rs              | 2 +-
 13 files changed, 18 insertions(+), 20 deletions(-)

--
2.50.0


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

end of thread, other threads:[~2025-06-28  7:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-27  6:53 [PATCH v2 0/3] replace `allow(...)` lints with `expect(...)` Onur Özkan
2025-06-27  6:53 ` [PATCH v2 1/3] replace `#[allow(...)]` with `#[expect(...)]` Onur Özkan
2025-06-27  6:53 ` [PATCH v2 2/3] rust: remove `#[allow(clippy::unnecessary_cast)]` Onur Özkan
2025-06-27  6:53 ` [PATCH v2 3/3] rust: remove `#[allow(clippy::non_send_fields_in_send_ty)]` Onur Özkan
2025-06-27 15:55 ` [PATCH v2 0/3] replace `allow(...)` lints with `expect(...)` Miguel Ojeda
2025-06-28  4:03   ` Onur
2025-06-28  7:18     ` Miguel Ojeda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).