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 <aliceryhl@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
This commit is contained in:
Alice Ryhl 2025-12-02 19:37:46 +00:00 committed by Shuah Khan
parent 9ace4753a5
commit 567b3d3af6
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
#include <kunit/test-bug.h> #include <kunit/test-bug.h>
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(); return kunit_get_current_test();
} }