Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Alice Ryhl and committed by
Miguel Ojeda
7caeac0b 0bfea95c

+2 -2
+2 -2
rust/helpers/bug.c
··· 2 2 3 3 #include <linux/bug.h> 4 4 5 - __noreturn void rust_helper_BUG(void) 5 + __rust_helper __noreturn void rust_helper_BUG(void) 6 6 { 7 7 BUG(); 8 8 } 9 9 10 - bool rust_helper_WARN_ON(bool cond) 10 + __rust_helper bool rust_helper_WARN_ON(bool cond) 11 11 { 12 12 return WARN_ON(cond); 13 13 }