Skip to content

Commit 1f7051e

Browse files
committed
rust: bindings: use core::ffi instead of kernel::c_types
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent 7b718c7 commit 1f7051e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

rust/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ bindgen_c_flags_final = $(bindgen_c_flags_lto)
297297
quiet_cmd_bindgen = BINDGEN $@
298298
cmd_bindgen = \
299299
$(BINDGEN) $< $(bindgen_target_flags) \
300-
--use-core --with-derive-default --ctypes-prefix c_types \
300+
--use-core --with-derive-default --ctypes-prefix core::ffi \
301301
--no-debug '.*' \
302302
--size_t-is-usize -o $@ -- $(bindgen_c_flags_final) -DMODULE \
303303
$(bindgen_target_cflags) $(bindgen_target_extra)

rust/kernel/bindings.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ mod bindings_raw {
2222
// Use glob import here to expose all helpers.
2323
// Symbols defined within the module will take precedence to the glob import.
2424
pub use super::bindings_helper::*;
25-
use crate::c_types;
2625
include!(concat!(env!("OBJTREE"), "/rust/bindings_generated.rs"));
2726
}
2827

@@ -33,7 +32,6 @@ mod bindings_raw {
3332
mod bindings_helper {
3433
// Import the generated bindings for types.
3534
use super::bindings_raw::*;
36-
use crate::c_types;
3735
include!(concat!(
3836
env!("OBJTREE"),
3937
"/rust/bindings_helpers_generated.rs"

0 commit comments

Comments
 (0)