Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Abhinav Ananthu and committed by
Danilo Krummrich
4005dac6 377c2b3c

+1 -1
+1 -1
rust/kernel/auxiliary.rs
··· 55 55 extern "C" fn probe_callback( 56 56 adev: *mut bindings::auxiliary_device, 57 57 id: *const bindings::auxiliary_device_id, 58 - ) -> kernel::ffi::c_int { 58 + ) -> c_int { 59 59 // SAFETY: The auxiliary bus only ever calls the probe callback with a valid pointer to a 60 60 // `struct auxiliary_device`. 61 61 //