summaryrefslogtreecommitdiffstats
path: root/rust
diff options
context:
space:
mode:
authorAlice Ryhl <aliceryhl@google.com>2026-01-05 12:42:20 +0000
committerPaul Moore <paul@paul-moore.com>2026-01-06 20:30:09 -0500
commit517fd96cba7bffe23c7ef353a33e2ca12e739e6a (patch)
tree90811385421508adbebff031a870225b2a059e2a /rust
parent4f099d09400a190abc12ad3d8fd4e94ebeed57ca (diff)
downloadlinux-517fd96cba7bffe23c7ef353a33e2ca12e739e6a.tar.gz
linux-517fd96cba7bffe23c7ef353a33e2ca12e739e6a.zip
rust: cred: 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> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'rust')
-rw-r--r--rust/helpers/cred.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/helpers/cred.c b/rust/helpers/cred.c
index fde7ae20cdd1..a56a7b753623 100644
--- a/rust/helpers/cred.c
+++ b/rust/helpers/cred.c
@@ -2,12 +2,12 @@
#include <linux/cred.h>
-const struct cred *rust_helper_get_cred(const struct cred *cred)
+__rust_helper const struct cred *rust_helper_get_cred(const struct cred *cred)
{
return get_cred(cred);
}
-void rust_helper_put_cred(const struct cred *cred)
+__rust_helper void rust_helper_put_cred(const struct cred *cred)
{
put_cred(cred);
}