rust: auxiliary: Use `c_` types from prelude instead of
Subsystems (2)
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::.
Signed-off-by Abhinav Ananthu <[email protected]>
--- rust/kernel/auxiliary.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
rust/kernel/auxiliary.rs +1 -1
@@ -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
Greg KH
maintainerQuoted 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 viakernel::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