From nobody Wed Oct 8 14:16:04 2025 Received: from forward103b.mail.yandex.net (forward103b.mail.yandex.net [178.154.239.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E604D21B9C6; Fri, 27 Jun 2025 06:54:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.154.239.150 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751007294; cv=none; b=G45M0HiQpANk5OtuECWFkPd7yzOGvurOD43vwZRa9dbnq1ATw+0mvozmo3TPj/bsOI0TRD3S5ZH62mCOrZfSWOJXYqV2IHFs9SynOHF1Yu1XeRR5zcwATkZ4G9uJVsN2fP3XxpJs40TBCWmJzLc5bRtzyzQlMi5SNdbAd9fvloI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751007294; c=relaxed/simple; bh=O0eEG6AqVcnzabjkz5NDD5aTi9odfAzvy7DJp822KYU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ovSYH6ZQoPkwH8ZjI+YCT/vlUSCZmhdhEc2BLKj0enQ/b6m8Lk7ieHu1DYLuAhCcYkHfNwKDJZ3N2XesfMGIJTzXIFArEDe9R1tZMtOh9L0zRHZAWMN5r8+uJhCL/wrDvAQiagniVrQWMt4DkCQYE0U41l+zq3sOOIMoZaF/tCQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=onurozkan.dev; spf=pass smtp.mailfrom=onurozkan.dev; dkim=pass (1024-bit key) header.d=onurozkan.dev header.i=@onurozkan.dev header.b=ONxIeEhA; arc=none smtp.client-ip=178.154.239.150 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=onurozkan.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=onurozkan.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=onurozkan.dev header.i=@onurozkan.dev header.b="ONxIeEhA" Received: from mail-nwsmtp-smtp-production-main-87.sas.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-87.sas.yp-c.yandex.net [IPv6:2a02:6b8:c23:2ea3:0:640:da3e:0]) by forward103b.mail.yandex.net (Yandex) with ESMTPS id E555960C66; Fri, 27 Jun 2025 09:54:48 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-87.sas.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id PsPIlP9LwSw0-Pg2GOGzL; Fri, 27 Jun 2025 09:54:47 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=onurozkan.dev; s=mail; t=1751007288; bh=sLzRd7jLzwIbxnFGTh0kZiQjEVL1ElXIe6pRLv391lI=; h=Cc:Message-ID:References:Date:In-Reply-To:Subject:To:From; b=ONxIeEhA83y1UWycswN9VVy6cqoFUfBCHEhyz7ub4k5vSyQM6GjsoDfsp+Z38wOMK PicLH83bOSXRZWdoQdH4K4DEwmNKDogg78yZq3sOXon9CAeoRejKyO9XTQth9Xs+LU BOrdr62yzUca9QRr5froMNQS4iRcxDdPyzPpMfjM= Authentication-Results: mail-nwsmtp-smtp-production-main-87.sas.yp-c.yandex.net; dkim=pass header.i=@onurozkan.dev From: =?UTF-8?q?Onur=20=C3=96zkan?= To: rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com Cc: airlied@gmail.com, simona@ffwll.ch, ojeda@kernel.org, alex.gaynor@gmail.com, boqun.feng@gmail.com, gary@garyguo.net, bjorn3_gh@protonmail.com, lossin@kernel.org, a.hindborg@kernel.org, aliceryhl@google.com, tmgross@umich.edu, rafael@kernel.org, viresh.kumar@linaro.org, gregkh@linuxfoundation.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, davidgow@google.com, nm@ti.com, =?UTF-8?q?Onur=20=C3=96zkan?= Subject: [PATCH v2 1/3] replace `#[allow(...)]` with `#[expect(...)]` Date: Fri, 27 Jun 2025 09:53:18 +0300 Message-ID: <20250627065320.9315-2-work@onurozkan.dev> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250627065320.9315-1-work@onurozkan.dev> References: <20250627065320.9315-1-work@onurozkan.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This makes it clear that the warning is expected not just ignored, so we don't end up having various unnecessary linting rules in the codebase. Some parts of the codebase already use this approach, this patch just applies it more broadly. Signed-off-by: Onur =C3=96zkan --- drivers/gpu/nova-core/regs.rs | 2 +- rust/compiler_builtins.rs | 2 +- rust/kernel/alloc/allocator_test.rs | 2 +- rust/kernel/devres.rs | 2 +- rust/kernel/driver.rs | 2 +- rust/kernel/drm/ioctl.rs | 8 ++++---- rust/kernel/error.rs | 2 +- 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 +- 12 files changed, 18 insertions(+), 18 deletions(-) diff --git a/drivers/gpu/nova-core/regs.rs b/drivers/gpu/nova-core/regs.rs index 5a1273230306..87e5963f1ebb 100644 --- a/drivers/gpu/nova-core/regs.rs +++ b/drivers/gpu/nova-core/regs.rs @@ -2,7 +2,7 @@ // Required to retain the original register names used by OpenRM, which ar= e all capital snake case // but are mapped to types. -#![allow(non_camel_case_types)] +#![expect(non_camel_case_types)] #[macro_use] mod macros; diff --git a/rust/compiler_builtins.rs b/rust/compiler_builtins.rs index dd16c1dc899c..477b41da56d7 100644 --- a/rust/compiler_builtins.rs +++ b/rust/compiler_builtins.rs @@ -19,7 +19,7 @@ //! [`compiler_builtins`]: https://github.com/rust-lang/compiler-builtins //! [`compiler-rt`]: https://compiler-rt.llvm.org/ -#![allow(internal_features)] +#![expect(internal_features)] #![feature(compiler_builtins)] #![compiler_builtins] #![no_builtins] diff --git a/rust/kernel/alloc/allocator_test.rs b/rust/kernel/alloc/alloca= tor_test.rs index d19c06ef0498..844197d7194e 100644 --- a/rust/kernel/alloc/allocator_test.rs +++ b/rust/kernel/alloc/allocator_test.rs @@ -7,7 +7,7 @@ //! `Cmalloc` allocator within the `allocator_test` module and type alias = all kernel allocators to //! `Cmalloc`. The `Cmalloc` allocator uses libc's `realloc()` function as= allocator backend. -#![allow(missing_docs)] +#![expect(missing_docs)] use super::{flags::*, AllocError, Allocator, Flags}; use core::alloc::Layout; diff --git a/rust/kernel/devres.rs b/rust/kernel/devres.rs index 57502534d985..0e9510cf4625 100644 --- a/rust/kernel/devres.rs +++ b/rust/kernel/devres.rs @@ -157,7 +157,7 @@ fn remove_action(this: &Arc) -> bool { success } - #[allow(clippy::missing_safety_doc)] + #[expect(clippy::missing_safety_doc)] unsafe extern "C" fn devres_callback(ptr: *mut kernel::ffi::c_void) { let ptr =3D ptr as *mut DevresInner; // Devres owned this memory; now that we received the callback, dr= op the `Arc` and hence the diff --git a/rust/kernel/driver.rs b/rust/kernel/driver.rs index ec9166cedfa7..fc7bd65b01f1 100644 --- a/rust/kernel/driver.rs +++ b/rust/kernel/driver.rs @@ -168,7 +168,7 @@ fn of_id_info(dev: &device::Device) -> Option<&'static = Self::IdInfo> { } #[cfg(not(CONFIG_OF))] - #[allow(missing_docs)] + #[expect(missing_docs)] fn of_id_info(_dev: &device::Device) -> Option<&'static Self::IdInfo> { None } diff --git a/rust/kernel/drm/ioctl.rs b/rust/kernel/drm/ioctl.rs index 445639404fb7..3ae8d2d8263f 100644 --- a/rust/kernel/drm/ioctl.rs +++ b/rust/kernel/drm/ioctl.rs @@ -9,28 +9,28 @@ const BASE: u32 =3D uapi::DRM_IOCTL_BASE as u32; /// Construct a DRM ioctl number with no argument. -#[allow(non_snake_case)] +#[expect(non_snake_case)] #[inline(always)] pub const fn IO(nr: u32) -> u32 { ioctl::_IO(BASE, nr) } /// Construct a DRM ioctl number with a read-only argument. -#[allow(non_snake_case)] +#[expect(non_snake_case)] #[inline(always)] pub const fn IOR(nr: u32) -> u32 { ioctl::_IOR::(BASE, nr) } /// Construct a DRM ioctl number with a write-only argument. -#[allow(non_snake_case)] +#[expect(non_snake_case)] #[inline(always)] pub const fn IOW(nr: u32) -> u32 { ioctl::_IOW::(BASE, nr) } /// Construct a DRM ioctl number with a read-write argument. -#[allow(non_snake_case)] +#[expect(non_snake_case)] #[inline(always)] pub const fn IOWR(nr: u32) -> u32 { ioctl::_IOWR::(BASE, nr) diff --git a/rust/kernel/error.rs b/rust/kernel/error.rs index 3dee3139fcd4..a59613918d4c 100644 --- a/rust/kernel/error.rs +++ b/rust/kernel/error.rs @@ -263,7 +263,7 @@ fn from(e: core::convert::Infallible) -> Error { /// [`samples/rust/rust_minimal.rs`]): /// /// ``` -/// # #[allow(clippy::single_match)] +/// # #[expect(clippy::single_match)] /// fn example() -> Result { /// let mut numbers =3D KVec::new(); /// diff --git a/rust/kernel/init.rs b/rust/kernel/init.rs index 8d228c237954..288b1c2a290d 100644 --- a/rust/kernel/init.rs +++ b/rust/kernel/init.rs @@ -30,7 +30,7 @@ //! ## General Examples //! //! ```rust,ignore -//! # #![allow(clippy::disallowed_names)] +//! # #![expect(clippy::disallowed_names)] //! use kernel::types::Opaque; //! use pin_init::pin_init_from_closure; //! @@ -67,11 +67,11 @@ //! ``` //! //! ```rust,ignore -//! # #![allow(unreachable_pub, clippy::disallowed_names)] +//! # #![expect(unreachable_pub, clippy::disallowed_names)] //! use kernel::{prelude::*, types::Opaque}; //! use core::{ptr::addr_of_mut, marker::PhantomPinned, pin::Pin}; //! # mod bindings { -//! # #![allow(non_camel_case_types)] +//! # #![expect(non_camel_case_types)] //! # pub struct foo; //! # pub unsafe fn init_foo(_ptr: *mut foo) {} //! # pub unsafe fn destroy_foo(_ptr: *mut foo) {} diff --git a/rust/kernel/kunit.rs b/rust/kernel/kunit.rs index 4b8cdcb21e77..91710a1d7b87 100644 --- a/rust/kernel/kunit.rs +++ b/rust/kernel/kunit.rs @@ -280,7 +280,7 @@ macro_rules! kunit_unsafe_test_suite { static mut KUNIT_TEST_SUITE: ::kernel::bindings::kunit_suite = =3D ::kernel::bindings::kunit_suite { name: KUNIT_TEST_SUITE_NAME, - #[allow(unused_unsafe)] + #[expect(unused_unsafe)] // SAFETY: `$test_cases` is passed in by the user, and // (as documented) must be valid for the lifetime of // the suite (i.e., static). diff --git a/rust/kernel/opp.rs b/rust/kernel/opp.rs index a566fc3e7dcb..aaeefe84861a 100644 --- a/rust/kernel/opp.rs +++ b/rust/kernel/opp.rs @@ -600,9 +600,9 @@ extern "C" fn config_regulators( pub struct Table { ptr: *mut bindings::opp_table, dev: ARef, - #[allow(dead_code)] + #[expect(dead_code)] em: bool, - #[allow(dead_code)] + #[expect(dead_code)] of: bool, cpus: Option, } diff --git a/rust/kernel/types.rs b/rust/kernel/types.rs index 22985b6f6982..a5d5a4737a41 100644 --- a/rust/kernel/types.rs +++ b/rust/kernel/types.rs @@ -600,5 +600,5 @@ pub enum Either { /// constructed. /// /// [`NotThreadSafe`]: type@NotThreadSafe -#[allow(non_upper_case_globals)] +#[expect(non_upper_case_globals)] pub const NotThreadSafe: NotThreadSafe =3D PhantomData; diff --git a/rust/macros/helpers.rs b/rust/macros/helpers.rs index e2602be402c1..6fd1462ff01a 100644 --- a/rust/macros/helpers.rs +++ b/rust/macros/helpers.rs @@ -98,7 +98,7 @@ pub(crate) fn file() -> String { } #[cfg(CONFIG_RUSTC_HAS_SPAN_FILE)] - #[allow(clippy::incompatible_msrv)] + #[expect(clippy::incompatible_msrv)] { proc_macro::Span::call_site().file() } -- 2.50.0 From nobody Wed Oct 8 14:16:04 2025 Received: from forward102b.mail.yandex.net (forward102b.mail.yandex.net [178.154.239.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4FDB521D3CC; Fri, 27 Jun 2025 06:55:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.154.239.149 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751007303; cv=none; b=FuoUt1W91hT2hDdmsWe7BPosH+lLHjy0NgmZcr/Mum2fSpyWKyRhCHQDWmZrO1jSUPgpcoPqKx84ktgDOpkKYMNKuU3ZoBrQE+5TW7pkBM1O9Ib/UmxjtRUCwNLLKn80FIEaY6MijokXb2wVXJmk0J1ViHrRFkPqUzJ0e84ncFA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751007303; c=relaxed/simple; bh=5jNHxYiPINqgM7TZSD4XvG1CJYs9BSX4iWIo7g+ug3w=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=edG4yjMblc3QZH4bWnQ1TN9L7alu0bAXEBYvgCOoDvMFePJGPVa3qWhclV5QTmHHhBVvQ5EZ65ARW2fImbsWEOITlXxaAbfX0vjj7oaWZNCShtCfgQnONb2d68wLaVddvXoJ8R0nEY9L94vB06GhATXMix2ZjX5WSdfZhkd77hk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=onurozkan.dev; spf=pass smtp.mailfrom=onurozkan.dev; dkim=pass (1024-bit key) header.d=onurozkan.dev header.i=@onurozkan.dev header.b=ddps08uT; arc=none smtp.client-ip=178.154.239.149 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=onurozkan.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=onurozkan.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=onurozkan.dev header.i=@onurozkan.dev header.b="ddps08uT" Received: from mail-nwsmtp-smtp-production-main-87.sas.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-87.sas.yp-c.yandex.net [IPv6:2a02:6b8:c23:2ea3:0:640:da3e:0]) by forward102b.mail.yandex.net (Yandex) with ESMTPS id 67D3960D56; Fri, 27 Jun 2025 09:54:53 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-87.sas.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id PsPIlP9LwSw0-30PUW0YP; Fri, 27 Jun 2025 09:54:52 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=onurozkan.dev; s=mail; t=1751007292; bh=ry/nljdjBuoojwts/DOYg5GF1XJZ/JGUBkyIcJh8zZo=; h=Cc:Message-ID:References:Date:In-Reply-To:Subject:To:From; b=ddps08uTBCP09eSC4n4fKqSw9gwwa9whkwZ2+r2vs3xRJa3djOaGCs+k0ZfslHT1f WqGEpbVVJHEPKoi4RS+uptc9l0msnV8s3ASVNsLadBCeAu2d4NIJFIp3Mbuz4ZPns1 0egVE0dgDMhXQz3qqQZJio+kJczBWlqTF8U0kI1o= Authentication-Results: mail-nwsmtp-smtp-production-main-87.sas.yp-c.yandex.net; dkim=pass header.i=@onurozkan.dev From: =?UTF-8?q?Onur=20=C3=96zkan?= To: rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com Cc: airlied@gmail.com, simona@ffwll.ch, ojeda@kernel.org, alex.gaynor@gmail.com, boqun.feng@gmail.com, gary@garyguo.net, bjorn3_gh@protonmail.com, lossin@kernel.org, a.hindborg@kernel.org, aliceryhl@google.com, tmgross@umich.edu, rafael@kernel.org, viresh.kumar@linaro.org, gregkh@linuxfoundation.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, davidgow@google.com, nm@ti.com, =?UTF-8?q?Onur=20=C3=96zkan?= Subject: [PATCH v2 2/3] rust: remove `#[allow(clippy::unnecessary_cast)]` Date: Fri, 27 Jun 2025 09:53:19 +0300 Message-ID: <20250627065320.9315-3-work@onurozkan.dev> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250627065320.9315-1-work@onurozkan.dev> References: <20250627065320.9315-1-work@onurozkan.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This isn't needed anymore since `kernel::ffi::c_int` type is always `i32` which differs from `err` (isize). Signed-off-by: Onur =C3=96zkan --- rust/kernel/error.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/rust/kernel/error.rs b/rust/kernel/error.rs index a59613918d4c..05c6e71c0afb 100644 --- a/rust/kernel/error.rs +++ b/rust/kernel/error.rs @@ -413,7 +413,6 @@ pub fn from_err_ptr(ptr: *mut T) -> Result<*mut T> { // SAFETY: The FFI function does not deref the pointer. let err =3D unsafe { bindings::PTR_ERR(const_ptr) }; - #[allow(clippy::unnecessary_cast)] // CAST: If `IS_ERR()` returns `true`, // then `PTR_ERR()` is guaranteed to return a // negative value greater-or-equal to `-bindings::MAX_ERRNO`, -- 2.50.0 From nobody Wed Oct 8 14:16:04 2025 Received: from forward103b.mail.yandex.net (forward103b.mail.yandex.net [178.154.239.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E5BFE21B9C6; Fri, 27 Jun 2025 06:54:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.154.239.150 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751007301; cv=none; b=uqlaJvCpIXbtsY5XABlqcAxz/005u8UcnpvUPF7BumF4dUgRZbthLQFvDZaXpLhNP5yJNrWe/IPCmyTpLVrG1wbRknWxOvQ2YvKE2C6apImeiVwcLPTLpN+5oun0xx1RlLqizzsnAQM5g9el4V2esL/Pb7mn0fSdGaEymCoC4lA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751007301; c=relaxed/simple; bh=MHf2LFg84werqxYDZJfhmApfMPTrh5lfupXyN5hzHB8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ERgiiCpgvEJSqxsRg5JrcOoy9Cp/1JGw0j2yLfTj6KqZzMnLrgVroj/xW1bR1B2ZgB4mSBvXD0Ek8Vcsr3+uXK6Yd2mpPaQ6kgPhSZIBt9zmvqre2VwhPeTExJ61J+5M16QgAHWuoU5tjZuqCi7R3+njC88zwE7BtKz9XFuMkn0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=onurozkan.dev; spf=pass smtp.mailfrom=onurozkan.dev; dkim=pass (1024-bit key) header.d=onurozkan.dev header.i=@onurozkan.dev header.b=HkBIIXaG; arc=none smtp.client-ip=178.154.239.150 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=onurozkan.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=onurozkan.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=onurozkan.dev header.i=@onurozkan.dev header.b="HkBIIXaG" Received: from mail-nwsmtp-smtp-production-main-87.sas.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-87.sas.yp-c.yandex.net [IPv6:2a02:6b8:c23:2ea3:0:640:da3e:0]) by forward103b.mail.yandex.net (Yandex) with ESMTPS id 5407960A84; Fri, 27 Jun 2025 09:54:57 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-87.sas.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id PsPIlP9LwSw0-m2hF7xsP; Fri, 27 Jun 2025 09:54:56 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=onurozkan.dev; s=mail; t=1751007296; bh=MHf2LFg84werqxYDZJfhmApfMPTrh5lfupXyN5hzHB8=; h=Cc:Message-ID:References:Date:In-Reply-To:Subject:To:From; b=HkBIIXaGjNYuG7DZi/gmanqaauwujy8+HK4cyDosW8AZlSvmGpzV4cPP0DeaQqZKn 1FNUliEVdz5NMNiXx2orYtZK8YpKObhvLOCRZQPlN6lT60CU0RukmpRwy/GIW7fbCQ slK5rt7Nfef8WWFKcDIB9p/xfa6uaSwI3/B6Xuak= Authentication-Results: mail-nwsmtp-smtp-production-main-87.sas.yp-c.yandex.net; dkim=pass header.i=@onurozkan.dev From: =?UTF-8?q?Onur=20=C3=96zkan?= To: rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com Cc: airlied@gmail.com, simona@ffwll.ch, ojeda@kernel.org, alex.gaynor@gmail.com, boqun.feng@gmail.com, gary@garyguo.net, bjorn3_gh@protonmail.com, lossin@kernel.org, a.hindborg@kernel.org, aliceryhl@google.com, tmgross@umich.edu, rafael@kernel.org, viresh.kumar@linaro.org, gregkh@linuxfoundation.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, davidgow@google.com, nm@ti.com, =?UTF-8?q?Onur=20=C3=96zkan?= Subject: [PATCH v2 3/3] rust: remove `#[allow(clippy::non_send_fields_in_send_ty)]` Date: Fri, 27 Jun 2025 09:53:20 +0300 Message-ID: <20250627065320.9315-4-work@onurozkan.dev> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250627065320.9315-1-work@onurozkan.dev> References: <20250627065320.9315-1-work@onurozkan.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Clippy no longer complains about this lint. Signed-off-by: Onur =C3=96zkan --- rust/kernel/cpufreq.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/rust/kernel/cpufreq.rs b/rust/kernel/cpufreq.rs index 11b03e9d7e89..97de9b0573da 100644 --- a/rust/kernel/cpufreq.rs +++ b/rust/kernel/cpufreq.rs @@ -907,7 +907,6 @@ fn register_em(_policy: &mut Policy) { /// or CPUs, so it is safe to share it. unsafe impl Sync for Registration {} -#[allow(clippy::non_send_fields_in_send_ty)] /// SAFETY: Registration with and unregistration from the cpufreq subsyste= m can happen from any /// thread. unsafe impl Send for Registration {} -- 2.50.0