]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
rust: cred: add __rust_helper to helpers
authorAlice Ryhl <aliceryhl@google.com>
Mon, 5 Jan 2026 12:42:20 +0000 (12:42 +0000)
committerPaul Moore <paul@paul-moore.com>
Wed, 7 Jan 2026 01:30:09 +0000 (20:30 -0500)
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>
rust/helpers/cred.c

index fde7ae20cdd19f04ac5f28808586c65de6b72f09..a56a7b7536232733dcdc640f09f8f2537e69d75e 100644 (file)
@@ -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);
 }