diff options
author | Abhinav Ananthu <abhinav.ogl@gmail.com> | 2025-06-13 15:48:16 +0530 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2025-06-19 13:25:46 +0530 |
commit | 10bb7f09e346f152d2627e0b3619c402d64a50e9 (patch) | |
tree | 44011611420567b567aaa358d161552f8ad76563 /scripts/lib/kdoc/kdoc_parser.py | |
parent | 43ab245a9ec3837a0ca75c3ed9ba887d8e8b022e (diff) |
rust: cpufreq: Ensure C ABI compatibility in all unsafe
Update all `unsafe extern "C"` callback functions in the cpufreq module to
use `kernel::ffi` types (`c_int`, `c_uint`, etc.) instead of Rust-native
types like `i32`, `u32`, or `usize`.
This change ensures that all Rust callbacks have signatures that are
ABI-compatible with their corresponding C counterparts, which is critical
for FFI correctness and safety.
Suggested-by: Miguel Ojeda <ojeda@kernel.org>
Link: https://github.com/Rust-for-Linux/linux/issues/1170
Signed-off-by: Abhinav Ananthu <abhinav.ogl@gmail.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions