From: Alice Ryhl Date: Mon, 5 Jan 2026 12:42:37 +0000 (+0000) Subject: rust: usb: add __rust_helper to helpers X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0f6fc3f7abab441377d5a7f46f11cb981a1679f;p=thirdparty%2Flinux.git rust: usb: add __rust_helper to helpers This is needed to inline these helpers into Rust code. Reviewed-by: Boqun Feng Reviewed-by: Gary Guo Reviewed-by: Daniel Almeida Signed-off-by: Alice Ryhl Link: https://patch.msgid.link/20260105-define-rust-helper-v2-24-51da5f454a67@google.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/rust/helpers/usb.c b/rust/helpers/usb.c index fb2aad0cbf4d2..eff1cf7be3c2d 100644 --- a/rust/helpers/usb.c +++ b/rust/helpers/usb.c @@ -2,7 +2,8 @@ #include -struct usb_device *rust_helper_interface_to_usbdev(struct usb_interface *intf) +__rust_helper struct usb_device * +rust_helper_interface_to_usbdev(struct usb_interface *intf) { return interface_to_usbdev(intf); }