diff options
| author | Abhinav Ananthu <abhinav.ogl@gmail.com> | 2025-08-12 13:21:10 +0530 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2025-08-15 20:04:08 +0200 |
| commit | 4005dac6573128d6e7b46c4ed43df1b23dab7765 (patch) | |
| tree | cb542bfcdee6f6c3cf01945cabb081cf89f76548 /rust/kernel | |
| parent | MAINTAINERS: add "DEVICE I/O & IRQ [RUST]" entry (diff) | |
| download | linux-4005dac6573128d6e7b46c4ed43df1b23dab7765.tar.gz linux-4005dac6573128d6e7b46c4ed43df1b23dab7765.zip | |
rust: auxiliary: Use `c_` types from prelude instead of
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>
Diffstat (limited to 'rust/kernel')
| -rw-r--r-- | rust/kernel/auxiliary.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/kernel/auxiliary.rs b/rust/kernel/auxiliary.rs index 4749fb6bffef..f73c460665ec 100644 --- a/rust/kernel/auxiliary.rs +++ b/rust/kernel/auxiliary.rs @@ -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`. // |
