Closed
Description
I was trying build the linux-next tree today with Rust support enabled and ran into the following issue:
$ LLVM=1 make -j8
[...]
RUSTC L rust/kernel.o
error[E0428]: the name `maple_enode` is defined multiple times
--> /home/mortona/workspaces/linux/kernels/next/linux/rust/bindings_generated.rs:41359:1
|
41356 | pub struct maple_enode {
| ---------------------- previous definition of the type `maple_enode` here
...
41359 | pub type maple_enode = *mut maple_enode;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `maple_enode` redefined here
|
= note: `maple_enode` must be defined only once in the type namespace of this module
I've attached my .config for reference.
rust-config.txt