Skip to content

Commit

Permalink
rust/Kconfig: disable Rust support if CONFIG_MODVERSIONS=y
Browse files Browse the repository at this point in the history
In recent weeks, there have been a few reports of Rust build errors
for defconfigs which have CONFIG_MODVERSIONS=y. See torvalds#378 for example.

According to torvalds#59, Rust-for-Linux currently doesn't support MODVERSIONS.
To prevent confusion and build errors in the future, disable Rust
support if CONFIG_MODVERSIONS=y.

Signed-off-by: Sven Van Asbroeck <thesven73@gmail.com>
  • Loading branch information
Sven Van Asbroeck committed Jun 14, 2021
1 parent 523b4dd commit 9ac30a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions init/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2024,6 +2024,7 @@ config RUST
bool "Rust support"
depends on HAS_RUST
depends on !COMPILE_TEST
depends on !MODVERSIONS
default n
help
Enables Rust support in the kernel.
Expand Down

0 comments on commit 9ac30a9

Please sign in to comment.