mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:04:51 +01:00
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>
This commit is contained in:
parent
4f099d0940
commit
517fd96cba
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue