diff options
| author | Alice Ryhl <aliceryhl@google.com> | 2025-12-02 22:37:52 +0300 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2025-12-16 00:39:42 +0300 |
| commit | d17772fcb55cf70b7b6ccd78ef6fdefbf66542b8 (patch) | |
| tree | 999f8875bf3709185fd4d2f617824a6f452d0099 | |
| parent | 593e0b22340c3b6aa19c0fa3c466b0809a7ba0d1 (diff) | |
| download | linux-d17772fcb55cf70b7b6ccd78ef6fdefbf66542b8.tar.xz | |
rust: platform: 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-28-a2e13cbc17a6@google.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
| -rw-r--r-- | rust/helpers/platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/helpers/platform.c b/rust/helpers/platform.c index 1ce89c1a36f7..188b3240f32d 100644 --- a/rust/helpers/platform.c +++ b/rust/helpers/platform.c @@ -2,7 +2,7 @@ #include <linux/platform_device.h> -bool rust_helper_dev_is_platform(const struct device *dev) +__rust_helper bool rust_helper_dev_is_platform(const struct device *dev) { return dev_is_platform(dev); } |
