]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Revert "USB: disable rust bindings from the build for now"
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Oct 2025 12:10:28 +0000 (14:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Oct 2025 07:34:44 +0000 (09:34 +0200)
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>
rust/bindings/bindings_helper.h
rust/helpers/helpers.c
rust/kernel/lib.rs
samples/rust/Kconfig

index 2e43c66635a2c9f31bd99b9817bd2d6ab89fbcf2..d6906465e17ed5f17c38922814d2cb6b0eee3022 100644 (file)
@@ -80,6 +80,7 @@
 #include <linux/slab.h>
 #include <linux/task_work.h>
 #include <linux/tracepoint.h>
+#include <linux/usb.h>
 #include <linux/wait.h>
 #include <linux/workqueue.h>
 #include <linux/xarray.h>
index 551da6c9b5064c324d6f62bafcec672c6c6f5bee..16049d6e713f7d67befdc45cc84f3771091d5b87 100644 (file)
@@ -56,6 +56,7 @@
 #include "task.c"
 #include "time.c"
 #include "uaccess.c"
+#include "usb.c"
 #include "vmalloc.c"
 #include "wait.c"
 #include "workqueue.c"
index 3dd7bebe78882a932f54f305864d5f372a7cd695..9cf4ca0ae7a1ec8bbe26bed3008f35b3faaf9dc0 100644 (file)
@@ -138,6 +138,8 @@ pub mod time;
 pub mod tracepoint;
 pub mod transmute;
 pub mod types;
+#[cfg(CONFIG_USB = "y")]
+pub mod usb;
 pub mod uaccess;
 pub mod workqueue;
 pub mod xarray;
index c376eb899b7aaef73d095bd78b2b24f6c598f2d8..c1cc787a9adda99300616ea5bbea26f85a19af5c 100644 (file)
@@ -107,7 +107,7 @@ config SAMPLE_RUST_DRIVER_PLATFORM
 
 config SAMPLE_RUST_DRIVER_USB
        tristate "USB Driver"
-       depends on USB = y && BROKEN
+       depends on USB = y
        help
          This option builds the Rust USB driver sample.