From: Alice Ryhl Date: Tue, 2 Dec 2025 19:37:52 +0000 (+0000) Subject: rust: platform: add __rust_helper to helpers X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d17772fcb55cf70b7b6ccd78ef6fdefbf66542b8;p=thirdparty%2Fkernel%2Flinux.git 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 --- 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); }