Skip to content

Build fail on linux-next (next-20220629 tag): the name maple_enode is defined multiple times #795

Closed
@mortonar

Description

@mortonar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    • kbuildRelated to building the kernel, `make`, `Kbuild`, `Kconfig` options...

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions