Skip to content

Commit 4890cd1

Browse files
Darksonnojeda
authored andcommitted
rust: slab: add __rust_helper to helpers
This is needed to inline these helpers into Rust code. Reviewed-by: Boqun Feng <boqun.feng@gmail.com> Reviewed-by: Gary Guo <gary@garyguo.net> Signed-off-by: Alice Ryhl <aliceryhl@google.com> Acked-by: Danilo Krummrich <dakr@kernel.org> Link: https://patch.msgid.link/20260105-define-rust-helper-v2-19-51da5f454a67@google.com Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent ac585bf commit 4890cd1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rust/helpers/slab.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
#include <linux/slab.h>
44

5-
void * __must_check __realloc_size(2)
5+
__rust_helper void *__must_check __realloc_size(2)
66
rust_helper_krealloc_node_align(const void *objp, size_t new_size, unsigned long align,
77
gfp_t flags, int node)
88
{
99
return krealloc_node_align(objp, new_size, align, flags, node);
1010
}
1111

12-
void * __must_check __realloc_size(2)
12+
__rust_helper void *__must_check __realloc_size(2)
1313
rust_helper_kvrealloc_node_align(const void *p, size_t size, unsigned long align,
1414
gfp_t flags, int node)
1515
{

0 commit comments

Comments
 (0)