diff options
| author | Miguel Ojeda <ojeda@kernel.org> | 2024-12-15 22:43:53 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-27 04:34:15 -0800 |
| commit | 0545eb878267d95e94c5cc76667fdd7d5a1c384b (patch) | |
| tree | b62eba675bd7e2f02641f7d1a29f96123b1a3391 /samples | |
| parent | 648e440c98e260dec835e48a5d7a9993477b1f9d (diff) | |
| download | linux-0545eb878267d95e94c5cc76667fdd7d5a1c384b.tar.gz linux-0545eb878267d95e94c5cc76667fdd7d5a1c384b.tar.bz2 linux-0545eb878267d95e94c5cc76667fdd7d5a1c384b.zip | |
rust: finish using custom FFI integer types
commit 27c7518e7f1ccaaa43eb5f25dc362779d2dc2ccb upstream.
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 <jfalempe@redhat.com> # drm
Link: https://lore.kernel.org/rust-for-linux/CANiq72m_rg42SvZK=bF2f0yEoBLVA33UBhiAsv8THhVu=G2dPA@mail.gmail.com/
Link: https://lore.kernel.org/all/cc9253fa-9d5f-460b-9841-94948fb6580c@redhat.com/
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples')
| -rw-r--r-- | samples/rust/rust_print_main.rs | 2 |
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 |
