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.

Revert "USB: disable rust bindings from the build for now"

This reverts commit c584a1c7c8a192c13637bc51c7b63a9f15fe6474.

It brings the rust bindings for USB back into the build so that we can
work off of this for future kernel releases.

Link: https://lore.kernel.org/r/2025100827-divorcee-steadier-b40b@gregkh
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

+5 -1
+1
rust/bindings/bindings_helper.h
··· 80 80 #include <linux/slab.h> 81 81 #include <linux/task_work.h> 82 82 #include <linux/tracepoint.h> 83 + #include <linux/usb.h> 83 84 #include <linux/wait.h> 84 85 #include <linux/workqueue.h> 85 86 #include <linux/xarray.h>
+1
rust/helpers/helpers.c
··· 56 56 #include "task.c" 57 57 #include "time.c" 58 58 #include "uaccess.c" 59 + #include "usb.c" 59 60 #include "vmalloc.c" 60 61 #include "wait.c" 61 62 #include "workqueue.c"
+2
rust/kernel/lib.rs
··· 138 138 pub mod tracepoint; 139 139 pub mod transmute; 140 140 pub mod types; 141 + #[cfg(CONFIG_USB = "y")] 142 + pub mod usb; 141 143 pub mod uaccess; 142 144 pub mod workqueue; 143 145 pub mod xarray;
+1 -1
samples/rust/Kconfig
··· 107 107 108 108 config SAMPLE_RUST_DRIVER_USB 109 109 tristate "USB Driver" 110 - depends on USB = y && BROKEN 110 + depends on USB = y 111 111 help 112 112 This option builds the Rust USB driver sample. 113 113