From: Alice Ryhl Date: Mon, 5 Jan 2026 12:42:16 +0000 (+0000) Subject: rust: bug: add __rust_helper to helpers X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7caeac0b382ac3d48606e00d5683efda42204349;p=thirdparty%2Fkernel%2Flinux.git rust: bug: 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 Link: https://patch.msgid.link/20260105-define-rust-helper-v2-3-51da5f454a67@google.com Signed-off-by: Miguel Ojeda --- diff --git a/rust/helpers/bug.c b/rust/helpers/bug.c index a62c96f507d1c..b51e607725785 100644 --- a/rust/helpers/bug.c +++ b/rust/helpers/bug.c @@ -2,12 +2,12 @@ #include -__noreturn void rust_helper_BUG(void) +__rust_helper __noreturn void rust_helper_BUG(void) { BUG(); } -bool rust_helper_WARN_ON(bool cond) +__rust_helper bool rust_helper_WARN_ON(bool cond) { return WARN_ON(cond); }