mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
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>
This commit is contained in:
parent
ac585bf970
commit
4890cd1d33
1 changed files with 2 additions and 2 deletions
|
|
@ -2,14 +2,14 @@
|
|||
|
||||
#include <linux/slab.h>
|
||||
|
||||
void * __must_check __realloc_size(2)
|
||||
__rust_helper void *__must_check __realloc_size(2)
|
||||
rust_helper_krealloc_node_align(const void *objp, size_t new_size, unsigned long align,
|
||||
gfp_t flags, int node)
|
||||
{
|
||||
return krealloc_node_align(objp, new_size, align, flags, node);
|
||||
}
|
||||
|
||||
void * __must_check __realloc_size(2)
|
||||
__rust_helper void *__must_check __realloc_size(2)
|
||||
rust_helper_kvrealloc_node_align(const void *p, size_t size, unsigned long align,
|
||||
gfp_t flags, int node)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue