diff options
| author | Alice Ryhl <aliceryhl@google.com> | 2025-12-02 19:37:44 +0000 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2025-12-15 22:26:10 +0100 |
| commit | c7ff956344e4c4cc87de6c1a53a1fcbb5fd5fd78 (patch) | |
| tree | 8afffe23e36a39ebaebbce6d4e328a64b0262dc8 /rust | |
| parent | 7aab0122a1497656992cd08c8df5a6e3939f779a (diff) | |
| download | linux-c7ff956344e4c4cc87de6c1a53a1fcbb5fd5fd78.tar.gz linux-c7ff956344e4c4cc87de6c1a53a1fcbb5fd5fd78.zip | |
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>
Diffstat (limited to 'rust')
| -rw-r--r-- | rust/helpers/irq.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rust/helpers/irq.c b/rust/helpers/irq.c index 1faca428e2c0..a61fad333866 100644 --- a/rust/helpers/irq.c +++ b/rust/helpers/irq.c @@ -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); } |
