aboutsummaryrefslogtreecommitdiff
path: root/rust/helpers/slab.c
diff options
context:
space:
mode:
Diffstat (limited to 'rust/helpers/slab.c')
-rw-r--r--rust/helpers/slab.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/rust/helpers/slab.c b/rust/helpers/slab.c
new file mode 100644
index 000000000000..f043e087f9d6
--- /dev/null
+++ b/rust/helpers/slab.c
@@ -0,0 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
+
+#include <linux/slab.h>
+
+void * __must_check __realloc_size(2)
+rust_helper_krealloc(const void *objp, size_t new_size, gfp_t flags)
+{
+ return krealloc(objp, new_size, flags);
+}