Files
Alice Ryhl 517fd96cba rust: cred: add __rust_helper to helpers
This is needed to inline these helpers into Rust code.

Reviewed-by: Boqun Feng <[email protected]>
Reviewed-by: Gary Guo <[email protected]>
Signed-off-by: Alice Ryhl <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
2026-01-06 20:30:09 -05:00

14 lines
256 B
C

// SPDX-License-Identifier: GPL-2.0
#include <linux/cred.h>
__rust_helper const struct cred *rust_helper_get_cred(const struct cred *cred)
{
return get_cred(cred);
}
__rust_helper void rust_helper_put_cred(const struct cred *cred)
{
put_cred(cred);
}