aboutsummaryrefslogtreecommitdiffstats
path: root/samples/rust/rust_print_main.rs
diff options
context:
space:
mode:
authorMiguel Ojeda <[email protected]>2024-12-15 21:43:53 +0000
committerMiguel Ojeda <[email protected]>2024-12-16 20:48:45 +0000
commit27c7518e7f1ccaaa43eb5f25dc362779d2dc2ccb (patch)
tree4e414677aa7d3c56796828b82714c31434f86c7d /samples/rust/rust_print_main.rs
parentLinux 6.13-rc3 (diff)
downloadkernel-27c7518e7f1ccaaa43eb5f25dc362779d2dc2ccb.tar.gz
kernel-27c7518e7f1ccaaa43eb5f25dc362779d2dc2ccb.zip
rust: finish using custom FFI integer types
In the last kernel cycle we migrated most of the `core::ffi` cases in commit d072acda4862 ("rust: use custom FFI integer types"): Currently FFI integer types are defined in libcore. This commit creates the `ffi` crate and asks bindgen to use that crate for FFI integer types instead of `core::ffi`. This commit is preparatory and no type changes are made in this commit yet. Finish now the few remaining/new cases so that we perform the actual remapping in the next commit as planned. Acked-by: Jocelyn Falempe <[email protected]> # drm Link: https://lore.kernel.org/rust-for-linux/CANiq72m_rg42SvZK=bF2f0yEoBLVA33UBhiAsv8THhVu=G2dPA@mail.gmail.com/ Link: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'samples/rust/rust_print_main.rs')
-rw-r--r--samples/rust/rust_print_main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/rust/rust_print_main.rs b/samples/rust/rust_print_main.rs
index aed90a6feecf..7935b4772ec6 100644
--- a/samples/rust/rust_print_main.rs
+++ b/samples/rust/rust_print_main.rs
@@ -83,7 +83,7 @@ impl Drop for RustPrint {
}
mod trace {
- use core::ffi::c_int;
+ use kernel::ffi::c_int;
kernel::declare_trace! {
/// # Safety