Re: [PATCH] rust: opp: use c_* types via kernel prelude
From: Viresh Kumar
Date: Mon Jun 23 2025 - 00:22:53 EST
On 20-06-25, 15:29, Abhinav Ananthu wrote:
> Update OPP FFI callback signatures to use `c_int` from the `kernel::prelude`,
> instead of accessing it via `kernel::ffi::c_int`.
>
> Although these types are defined in a crate named `ffi`, they are re-exported
> via the `kernel::prelude` and should be used from there. This aligns with the
> Rust-for-Linux coding guidelines and ensures ABI correctness when interfacing
> with C code.
>
> Signed-off-by: Abhinav Ananthu <abhinav.ogl@xxxxxxxxx>
> Suggested-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx>
> ---
> rust/kernel/opp.rs | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
Applied. Thanks.
--
viresh