[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250812035420.8123-1-abhinav.ogl@gmail.com>
Date: Tue, 12 Aug 2025 09:24:21 +0530
From: herculoxz <abhinav.ogl@...il.com>
To: gregkh@...uxfoundation.org,
david.m.ertman@...el.com,
ira.weiny@...el.com,
leon@...nel.org,
ojeda@...nel.org,
alex.gaynor@...il.com,
boqun.feng@...il.com,
gary@...yguo.net,
bjorn3_gh@...tonmail.com,
lossin@...nel.org,
a.hindborg@...nel.org,
aliceryhl@...gle.com,
tmgross@...ch.edu,
dakr@...nel.org
Cc: rust-for-linux@...r.kernel.org,
linux-kernel@...r.kernel.org,
Abhinav Ananthu <abhinav.ogl@...il.com>
Subject: [PATCH] rust: auxiliary: Use `c_` types from prelude instead of
From: Abhinav Ananthu <abhinav.ogl@...il.com>
Update auxiliary FFI callback signatures to reference the `c_` types
provided by the kernel prelude, rather than accessing them via
`kernel::ffi::`.
Signed-off-by: Abhinav Ananthu <abhinav.ogl@...il.com>
---
rust/kernel/auxiliary.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rust/kernel/auxiliary.rs b/rust/kernel/auxiliary.rs
index d2cfe1eeefb6..030e31333689 100644
--- a/rust/kernel/auxiliary.rs
+++ b/rust/kernel/auxiliary.rs
@@ -56,7 +56,7 @@ impl<T: Driver + 'static> Adapter<T> {
extern "C" fn probe_callback(
adev: *mut bindings::auxiliary_device,
id: *const bindings::auxiliary_device_id,
- ) -> kernel::ffi::c_int {
+ ) -> c_int {
// SAFETY: The auxiliary bus only ever calls the probe callback with a valid pointer to a
// `struct auxiliary_device`.
//
--
2.34.1
Powered by blists - more mailing lists