From 9ac30a9061f368a9bdffa7f8c311dd1ff4172d87 Mon Sep 17 00:00:00 2001 From: Sven Van Asbroeck Date: Mon, 14 Jun 2021 00:32:57 -0400 Subject: [PATCH] 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 --- init/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/init/Kconfig b/init/Kconfig index 3adee6b4b71922..5318f209a3b6b6 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -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.