[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CABVgOSmmungEf4-FqrBZpxKbje4UG+6C-A9O8Ub76s2uxb6j1Q@mail.gmail.com>
Date: Sat, 13 Dec 2025 10:12:42 +0800
From: David Gow <davidgow@...gle.com>
To: Alice Ryhl <aliceryhl@...gle.com>
Cc: rust-for-linux@...r.kernel.org, linux-kernel@...r.kernel.org,
Brendan Higgins <brendan.higgins@...ux.dev>, Rae Moar <rmoar@...gle.com>,
linux-kselftest@...r.kernel.org
Subject: Re: [PATCH 22/46] rust: kunit: add __rust_helper to helpers
On Wed, 3 Dec 2025 at 03:38, Alice Ryhl <aliceryhl@...gle.com> wrote:
>
> This is needed to inline these helpers into Rust code.
>
> Signed-off-by: Alice Ryhl <aliceryhl@...gle.com>
> ---
> Cc: Brendan Higgins <brendan.higgins@...ux.dev>
> Cc: David Gow <davidgow@...gle.com>
> Cc: Rae Moar <rmoar@...gle.com>
> Cc: linux-kselftest@...r.kernel.org
> ---
I'm assuming you'd prefer all of these to go in via the rust tree?
(But if you prefer, there's no problem with us taking this via the
kselftest/kunit tree.)
Reviewed-by: David Gow <davidgow@...gle.com>
Cheers,
-- David
> 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();
> }
>
> --
> 2.52.0.158.g65b55ccf14-goog
>
Download attachment "smime.p7s" of type "application/pkcs7-signature" (5281 bytes)
Powered by blists - more mailing lists