Linux Power Management development
 help / color / mirror / Atom feed
* [PATCH 0/2] rust: replace `allow(...)` with `expect(...)`
@ 2025-06-26 10:04 Onur Özkan
  2025-06-26 10:04 ` [PATCH 1/2] replace `#[allow(...)]` with `#[expect(...)]` Onur Özkan
  2025-06-26 10:04 ` [PATCH 2/2] rust: drop unnecessary lints caught by `#[expect(...)]` Onur Özkan
  0 siblings, 2 replies; 5+ messages in thread
From: Onur Özkan @ 2025-06-26 10:04 UTC (permalink / raw)
  To: 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

Replaces various `#[allow(...)]` with `#[expect(...)]` as suggested
in the kernel coding guidelines: [link]

[link]: https://docs.kernel.org/rust/coding-guidelines.html#lints

After switching to `#[expect(...)]`, I found some dead linting rules
that are no longer needed which are removed in the second patch.

Onur Özkan (1):
  replace `#[allow(...)]` with `#[expect(...)]`

onur-ozkan (1):
  rust: drop unnecessary lints caught by `#[expect(...)]`

 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] 5+ messages in thread

end of thread, other threads:[~2025-06-26 11:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-26 10:04 [PATCH 0/2] rust: replace `allow(...)` with `expect(...)` Onur Özkan
2025-06-26 10:04 ` [PATCH 1/2] replace `#[allow(...)]` with `#[expect(...)]` Onur Özkan
2025-06-26 10:04 ` [PATCH 2/2] rust: drop unnecessary lints caught by `#[expect(...)]` Onur Özkan
2025-06-26 10:09   ` Onur
2025-06-26 11:50   ` Miguel Ojeda

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