summaryrefslogtreecommitdiff
path: root/rust
diff options
context:
space:
mode:
authorAlice Ryhl <aliceryhl@google.com>2026-01-05 15:42:16 +0300
committerMiguel Ojeda <ojeda@kernel.org>2026-01-26 05:48:25 +0300
commit7caeac0b382ac3d48606e00d5683efda42204349 (patch)
tree50ed6c7799c1f3a688ba35ad45538e2c94f7476e /rust
parent0bfea95c3c02a887c25260e8aaf31cc9567bc478 (diff)
downloadlinux-7caeac0b382ac3d48606e00d5683efda42204349.tar.xz
rust: bug: 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> Link: https://patch.msgid.link/20260105-define-rust-helper-v2-3-51da5f454a67@google.com Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'rust')
-rw-r--r--rust/helpers/bug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/helpers/bug.c b/rust/helpers/bug.c
index a62c96f507d1..b51e60772578 100644
--- a/rust/helpers/bug.c
+++ b/rust/helpers/bug.c
@@ -2,12 +2,12 @@
#include <linux/bug.h>
-__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);
}