This is needed to inline these helpers into Rust code.
Signed-off-by: Alice Ryhl aliceryhl@google.com --- Cc: Brendan Higgins brendan.higgins@linux.dev Cc: David Gow davidgow@google.com Cc: Rae Moar rmoar@google.com Cc: linux-kselftest@vger.kernel.org --- rust/helpers/kunit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rust/helpers/kunit.c b/rust/helpers/kunit.c index b85a4d394c118906d35ffef85221cf1a8b3c6fe3..cafb94b6776c07fe505e1749de71f91125006131 100644 --- a/rust/helpers/kunit.c +++ b/rust/helpers/kunit.c @@ -2,7 +2,7 @@
#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(); }