VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Linus Torvalds <> 2021-09-05 11:24:05 -0700 committer: Linus Torvalds <> 2021-09-05 11:24:05 -0700 commit: 3fe617ccafd6f5bb33c2391d6f4eeb41c1fd0151 parent: fd47ff55c9c31101fcc06d20cb381da3d4089bd5
Commit Summary:
Enable '-Werror' by default for all kernel builds
1 file changed, 12 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig
index e708180e9a59..8cb97f141b70 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -137,6 +137,20 @@ config COMPILE_TEST
 	  here. If you are a user/distributor, say N here to exclude useless
 	  drivers to be distributed.
+config WERROR
+	bool "Compile the kernel with warnings as errors"
+	default y
+	help
+	  A kernel build should not cause any compiler warnings, and this
+	  enables the '-Werror' flag 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,
+	  you may need to disable this config option in order to
+	  successfully build the kernel.
+	  If in doubt, say Y.
 	bool "Compile test UAPI headers"