summaryrefslogtreecommitdiff
path: root/rust/helpers/string.c
diff options
context:
space:
mode:
authorSteven Rostedt <rostedt@goodmis.org>2026-06-29 11:32:44 -0400
committerSteven Rostedt <rostedt@goodmis.org>2026-06-29 11:32:44 -0400
commita13905ac604cfd28fbda0815da16127bd4069bbe (patch)
tree81c6504a0aae2c7d7ea118c7aff71ec943035ca7 /rust/helpers/string.c
parent56ece2fce5c00f577d92a376ba5dc4a2aa15925d (diff)
parentc35eb77a67515d4201bc91294f40761591f43bbd (diff)
downloadlinux-next-a13905ac604cfd28fbda0815da16127bd4069bbe.tar.gz
linux-next-a13905ac604cfd28fbda0815da16127bd4069bbe.zip
Merge tools/for-next
Diffstat (limited to 'rust/helpers/string.c')
-rw-r--r--rust/helpers/string.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/rust/helpers/string.c b/rust/helpers/string.c
new file mode 100644
index 000000000000..8ef30eb07a15
--- /dev/null
+++ b/rust/helpers/string.c
@@ -0,0 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
+
+#include <linux/string.h>
+
+__rust_helper void *rust_helper_memchr(const void *s, int c, size_t n)
+{
+ return memchr(s, c, n);
+}