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: usb: add __rust_helper to helpers

This is needed to inline these helpers into Rust code.

Reviewed-by: Boqun Feng <boqun.feng@gmail.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Reviewed-by: Daniel Almeida <daniel.almeida@collabora.com>
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Link: https://patch.msgid.link/20260105-define-rust-helper-v2-24-51da5f454a67@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Alice Ryhl and committed by
Greg Kroah-Hartman
d0f6fc3f e46bcc4e

+2 -1
+2 -1
rust/helpers/usb.c
··· 2 2 3 3 #include <linux/usb.h> 4 4 5 - struct usb_device *rust_helper_interface_to_usbdev(struct usb_interface *intf) 5 + __rust_helper struct usb_device * 6 + rust_helper_interface_to_usbdev(struct usb_interface *intf) 6 7 { 7 8 return interface_to_usbdev(intf); 8 9 }