]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rust: opp: use c_* types via kernel prelude
authorAbhinav Ananthu <abhinav.ogl@gmail.com>
Fri, 20 Jun 2025 09:59:21 +0000 (15:29 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 23 Jun 2025 04:22:45 +0000 (09:52 +0530)
commit22679d807dea5c065d8019acfce48f20e87ba5ca
tree0ac66163d0138ea4875c8454ada9fa7851febefc
parente04c78d86a9699d136910cfc0bdcf01087e3267e
rust: opp: use c_* types via kernel prelude

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.

Suggested-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Abhinav Ananthu <abhinav.ogl@gmail.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
rust/kernel/opp.rs