Re: [PATCH 24/46] rust: mm: add __rust_helper to helpers
From: Boqun Feng
Date: Tue Dec 02 2025 - 20:43:25 EST
On Tue, Dec 02, 2025 at 07:37:48PM +0000, Alice Ryhl wrote:
> This is needed to inline these helpers into Rust code.
>
> Signed-off-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
> ---
[...]
> --- a/rust/helpers/vmalloc.c
> +++ b/rust/helpers/vmalloc.c
> @@ -2,9 +2,10 @@
>
> #include <linux/vmalloc.h>
>
> -void * __must_check __realloc_size(2)
> -rust_helper_vrealloc_node_align(const void *p, size_t size, unsigned long align,
> - gfp_t flags, int node)
> +__rust_helper void *__must_check __realloc_size(2)
> + rust_helper_vrealloc_node_align(const void *p, size_t size,
The indent here seems to be incorrect?
Regards,
Boqun
> + unsigned long align, gfp_t flags,
> + int node)
> {
> return vrealloc_node_align(p, size, align, flags, node);
> }
>
> --
> 2.52.0.158.g65b55ccf14-goog
>
>