Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Alice Ryhl and committed by
Shuah Khan
567b3d3a 9ace4753

+1 -1
+1 -1
rust/helpers/kunit.c
··· 2 2 3 3 #include <kunit/test-bug.h> 4 4 5 - struct kunit *rust_helper_kunit_get_current_test(void) 5 + __rust_helper struct kunit *rust_helper_kunit_get_current_test(void) 6 6 { 7 7 return kunit_get_current_test(); 8 8 }