Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Alice Ryhl and committed by
Paul Moore
517fd96c 4f099d09

+2 -2
+2 -2
rust/helpers/cred.c
··· 2 2 3 3 #include <linux/cred.h> 4 4 5 - const struct cred *rust_helper_get_cred(const struct cred *cred) 5 + __rust_helper const struct cred *rust_helper_get_cred(const struct cred *cred) 6 6 { 7 7 return get_cred(cred); 8 8 } 9 9 10 - void rust_helper_put_cred(const struct cred *cred) 10 + __rust_helper void rust_helper_put_cred(const struct cred *cred) 11 11 { 12 12 put_cred(cred); 13 13 }