From: Alice Ryhl Date: Tue, 2 Dec 2025 19:37:46 +0000 (+0000) Subject: rust: kunit: add __rust_helper to helpers X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=567b3d3af647fe1e9b9fb306c70850c7066130a8;p=thirdparty%2Fkernel%2Flinux.git rust: kunit: add __rust_helper to helpers This is needed to inline these helpers into Rust code. Link: https://lore.kernel.org/r/20251202-define-rust-helper-v1-22-a2e13cbc17a6@google.com Signed-off-by: Alice Ryhl Reviewed-by: David Gow Signed-off-by: Shuah Khan --- diff --git a/rust/helpers/kunit.c b/rust/helpers/kunit.c index b85a4d394c118..cafb94b6776c0 100644 --- a/rust/helpers/kunit.c +++ b/rust/helpers/kunit.c @@ -2,7 +2,7 @@ #include -struct kunit *rust_helper_kunit_get_current_test(void) +__rust_helper struct kunit *rust_helper_kunit_get_current_test(void) { return kunit_get_current_test(); }