Skip to contentSkip to conversation

rust: auxiliary: Use `c_` types from prelude instead of

PATCH In review herculoxz 2 participants 2 messages Aug 12, 2025

Subsystems (2)
lore
Share & tools
lore

herculoxz

author
#0 lore raw

PATCH 1/1 rust: auxiliary: Use `c_` types from prelude instead of

From: Abhinav Ananthu <[email protected]>

Update auxiliary FFI callback signatures to reference the c_ types provided by the kernel prelude, rather than accessing them via kernel::ffi::.

---
 rust/kernel/auxiliary.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
rust/kernel/auxiliary.rs +1 -1
index d2cfe1eeefb6..030e31333689 100644
@@ -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`.
         //
Signature · 1 line
2.34.1
maintainer
#1 lore raw
Quoted 5 lines · herculoxz

From: Abhinav Ananthu <[email protected]>

Update auxiliary FFI callback signatures to reference the c_ types provided by the kernel prelude, rather than accessing them via kernel::ffi::.

Why is this indented?

Also, note that your "From:" line in your email client doesn't reflect your name here. That might be fine, but it's a bit odd and triggers my checks.

thanks,

greg k-h