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: 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>

authored by

Alice Ryhl and committed by
Miguel Ojeda
4890cd1d ac585bf9

+2 -2
+2 -2
rust/helpers/slab.c
··· 2 2 3 3 #include <linux/slab.h> 4 4 5 - void * __must_check __realloc_size(2) 5 + __rust_helper void *__must_check __realloc_size(2) 6 6 rust_helper_krealloc_node_align(const void *objp, size_t new_size, unsigned long align, 7 7 gfp_t flags, int node) 8 8 { 9 9 return krealloc_node_align(objp, new_size, align, flags, node); 10 10 } 11 11 12 - void * __must_check __realloc_size(2) 12 + __rust_helper void *__must_check __realloc_size(2) 13 13 rust_helper_kvrealloc_node_align(const void *p, size_t size, unsigned long align, 14 14 gfp_t flags, int node) 15 15 {