Re: [PATCH] rust: kunit: use crate-level mapping for `c_void`

2025-05-27 Thread Jesung Yang
Hi, On Tue, May 27, 2025 at 9:06 PM Benno Lossin wrote: > > We don't need to explicitly import it, as `c_void` is present in the > prelude since 3d5bef5d47c3 ("rust: add C FFI types to the prelude"). The base commit of my patch is f4daa80d6be7 ("rust: compile libcore with edition 2024 for 1.87+"

[PATCH] rust: kunit: use crate-level mapping for `c_void`

2025-05-26 Thread Jesung Yang
x27;s Rust code and provides a unified reference point in case the definition ever needs to change, even if such a change is unlikely. Signed-off-by: Jesung Yang --- rust/kernel/kunit.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rust/kernel/kunit.rs b/rust/kernel/kun

[PATCH v3] rust: kunit: use crate-level mapping for `c_void`

2025-05-28 Thread Jesung Yang
`kernel::ffi::c_void` improves consistency across the kernel's Rust code and provides a unified reference point in case the definition ever needs to change, even if such a change is unlikely. Reviewed-by: Benno Lossin Signed-off-by: Jesung Yang Link: https://rust-for-linux.zulipchat.com/#n

[PATCH v2] rust: kunit: use crate-level mapping for `c_void`

2025-05-28 Thread Jesung Yang
kernel's Rust code and provides a unified reference point in case the definition ever needs to change, even if such a change is unlikely. Signed-off-by: Jesung Yang Link: https://rust-for-linux.zulipchat.com/#narrow/channel/288089/topic/x/near/520452733 --- So in sum, I believe it's reasonab