From d17772fcb55cf70b7b6ccd78ef6fdefbf66542b8 Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Tue, 2 Dec 2025 19:37:52 +0000 Subject: [PATCH] rust: platform: add __rust_helper to helpers This is needed to inline these helpers into Rust code. Signed-off-by: Alice Ryhl Reviewed-by: Gary Guo Reviewed-by: Boqun Feng Link: https://patch.msgid.link/20251202-define-rust-helper-v1-28-a2e13cbc17a6@google.com Signed-off-by: Danilo Krummrich --- rust/helpers/platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/helpers/platform.c b/rust/helpers/platform.c index 1ce89c1a36f79..188b3240f32dc 100644 --- a/rust/helpers/platform.c +++ b/rust/helpers/platform.c @@ -2,7 +2,7 @@ #include -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); } -- 2.47.3