]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
rust: auxiliary: Use `c_` types from prelude instead of
authorAbhinav Ananthu <abhinav.ogl@gmail.com>
Tue, 12 Aug 2025 07:51:10 +0000 (13:21 +0530)
committerDanilo Krummrich <dakr@kernel.org>
Fri, 15 Aug 2025 18:04:08 +0000 (20:04 +0200)
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@gmail.com>
Link: https://lore.kernel.org/r/20250812075109.4099-1-abhinav.ogl@gmail.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/auxiliary.rs

index 4749fb6bffef34000d9029fecfd6553414feeae0..f73c460665ec19c6921bc60252574ec9fc63fd1e 100644 (file)
@@ -55,7 +55,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`.
         //