Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Alice Ryhl and committed by
Danilo Krummrich
d17772fc 593e0b22

+1 -1
+1 -1
rust/helpers/platform.c
··· 2 2 3 3 #include <linux/platform_device.h> 4 4 5 - bool rust_helper_dev_is_platform(const struct device *dev) 5 + __rust_helper bool rust_helper_dev_is_platform(const struct device *dev) 6 6 { 7 7 return dev_is_platform(dev); 8 8 }