xref: /linux/rust/helpers/vmalloc.c (revision d054796f8bb7d0aa9068d83feda76fe3b215f991)
1 // SPDX-License-Identifier: GPL-2.0
2 
3 #include <linux/mm.h>
4 #include <linux/vmalloc.h>
5 
6 __rust_helper 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)7 rust_helper_vrealloc_node_align(const void *p, size_t size, unsigned long align,
8 				gfp_t flags, int node)
9 {
10 	return vrealloc_node_align(p, size, align, flags, node);
11 }
12 
rust_helper_is_vmalloc_addr(const void * x)13 __rust_helper bool rust_helper_is_vmalloc_addr(const void *x)
14 {
15 	return is_vmalloc_addr(x);
16 }
17