Skip to content

Commit c584a1c

Browse files
committed
USB: disable rust bindings from the build for now
The rust USB bindings as submitted are a good start, but they don't really seem to be correct in a number of minor places, so just disable them from the build entirely at this point in time. When they are ready to be re-enabled, this commit can be reverted. Acked-by: Daniel Almeida <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent cc80dbb commit c584a1c

File tree

4 files changed

+1
-5
lines changed

4 files changed

+1
-5
lines changed

rust/bindings/bindings_helper.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@
7474
#include <linux/slab.h>
7575
#include <linux/task_work.h>
7676
#include <linux/tracepoint.h>
77-
#include <linux/usb.h>
7877
#include <linux/wait.h>
7978
#include <linux/workqueue.h>
8079
#include <linux/xarray.h>

rust/helpers/helpers.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
#include "task.c"
4949
#include "time.c"
5050
#include "uaccess.c"
51-
#include "usb.c"
5251
#include "vmalloc.c"
5352
#include "wait.c"
5453
#include "workqueue.c"

rust/kernel/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,6 @@ pub mod time;
127127
pub mod tracepoint;
128128
pub mod transmute;
129129
pub mod types;
130-
#[cfg(CONFIG_USB = "y")]
131-
pub mod usb;
132130
pub mod uaccess;
133131
pub mod workqueue;
134132
pub mod xarray;

samples/rust/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ config SAMPLE_RUST_DRIVER_PLATFORM
8585

8686
config SAMPLE_RUST_DRIVER_USB
8787
tristate "USB Driver"
88-
depends on USB = y
88+
depends on USB = y && BROKEN
8989
help
9090
This option builds the Rust USB driver sample.
9191

0 commit comments

Comments
 (0)