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: irq: add __rust_helper to helpers

This is needed to inline these helpers into Rust code.

Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Reviewed-by: Boqun Feng <boqun.feng@gmail.com>
Link: https://patch.msgid.link/20251202-define-rust-helper-v1-20-a2e13cbc17a6@google.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>

authored by

Alice Ryhl and committed by
Danilo Krummrich
c7ff9563 7aab0122

+4 -2
+4 -2
rust/helpers/irq.c
··· 2 2 3 3 #include <linux/interrupt.h> 4 4 5 - int rust_helper_request_irq(unsigned int irq, irq_handler_t handler, 6 - unsigned long flags, const char *name, void *dev) 5 + __rust_helper int rust_helper_request_irq(unsigned int irq, 6 + irq_handler_t handler, 7 + unsigned long flags, const char *name, 8 + void *dev) 7 9 { 8 10 return request_irq(irq, handler, flags, name, dev); 9 11 }