Re: [PATCH] rust: cpufreq: use c_ types from kernel prelude

From: Viresh Kumar
Date: Fri Jun 20 2025 - 05:46:39 EST


On 20-06-25, 14:22, Abhinav Ananthu 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>
> ---
> rust/kernel/cpufreq.rs | 30 +++++++++++++++---------------
> 1 file changed, 15 insertions(+), 15 deletions(-)

Applied. Thanks.

--
viresh