Skip to content

Commit 9ac30a9

Browse files
author
Sven Van Asbroeck
committed
rust/Kconfig: disable Rust support if CONFIG_MODVERSIONS=y
In recent weeks, there have been a few reports of Rust build errors for defconfigs which have CONFIG_MODVERSIONS=y. See #378 for example. According to #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 <[email protected]>
1 parent 523b4dd commit 9ac30a9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

init/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2024,6 +2024,7 @@ config RUST
20242024
bool "Rust support"
20252025
depends on HAS_RUST
20262026
depends on !COMPILE_TEST
2027+
depends on !MODVERSIONS
20272028
default n
20282029
help
20292030
Enables Rust support in the kernel.

0 commit comments

Comments
 (0)