Re: [PATCH] rust: cpufreq: use c_ types from kernel prelude
From: Alice Ryhl
Date: Fri Jun 20 2025 - 05:20:46 EST
On Fri, Jun 20, 2025 at 10:55 AM Abhinav Ananthu <abhinav.ogl@xxxxxxxxx> wrote:
>
> Update cpufreq FFI callback signatures to use `c_int` from the `kernel::prelude`,
> rather than accessing it explicitly through `kernel::ffi::c_int`.
>
> Although these types are defined in the `ffi` crate, they are re-exported
> via `kernel::prelude`. This aligns with the Rust-for-Linux coding
> guidelines and ensures proper C ABI compatibility across platforms.
>
> Signed-off-by: Abhinav Ananthu <abhinav.ogl@xxxxxxxxx>
> Suggested-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx>
Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>