]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
rust: irq: add __rust_helper to helpers
authorAlice Ryhl <aliceryhl@google.com>
Tue, 2 Dec 2025 19:37:44 +0000 (19:37 +0000)
committerDanilo Krummrich <dakr@kernel.org>
Mon, 15 Dec 2025 21:26:10 +0000 (22:26 +0100)
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>
rust/helpers/irq.c

index 1faca428e2c047a656dec3171855c1508d67e60b..a61fad33386621e8830319b92ee24b92fe7576f2 100644 (file)
@@ -2,8 +2,10 @@
 
 #include <linux/interrupt.h>
 
-int rust_helper_request_irq(unsigned int irq, irq_handler_t handler,
-                           unsigned long flags, const char *name, void *dev)
+__rust_helper int rust_helper_request_irq(unsigned int irq,
+                                         irq_handler_t handler,
+                                         unsigned long flags, const char *name,
+                                         void *dev)
 {
        return request_irq(irq, handler, flags, name, dev);
 }