From: Alice Ryhl Date: Mon, 5 Jan 2026 12:42:20 +0000 (+0000) Subject: rust: cred: add __rust_helper to helpers X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=517fd96cba7bffe23c7ef353a33e2ca12e739e6a;p=thirdparty%2Fkernel%2Flinux.git rust: cred: add __rust_helper to helpers This is needed to inline these helpers into Rust code. Reviewed-by: Boqun Feng Reviewed-by: Gary Guo Signed-off-by: Alice Ryhl Signed-off-by: Paul Moore --- diff --git a/rust/helpers/cred.c b/rust/helpers/cred.c index fde7ae20cdd19..a56a7b7536232 100644 --- a/rust/helpers/cred.c +++ b/rust/helpers/cred.c @@ -2,12 +2,12 @@ #include -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); }