From 1f433a4b716c313d599e2e30ca6fa70ff7667194 Mon Sep 17 00:00:00 2001 From: Miguel Ojeda Date: Sat, 16 Oct 2021 20:30:43 +0200 Subject: [PATCH] Kconfig: document `CONFIG_WERROR` applies to Rust too Signed-off-by: Miguel Ojeda --- init/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init/Kconfig b/init/Kconfig index f494e405c15616..7e1b85f85c3d4f 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -151,7 +151,8 @@ config WERROR default COMPILE_TEST help A kernel build should not cause any compiler warnings, and this - enables the '-Werror' flag to enforce that rule by default. + enables the '-Werror' (for C) and '-Dwarnings' (for Rust) flags + to enforce that rule by default. However, if you have a new (or very old) compiler with odd and unusual warnings, or you have some architecture with problems,