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:
parent
9ace4753a5
commit
567b3d3af6
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue