kernel: introduce KERNEL_WERROR config option
authorPetr Štetiar <ynezz@true.cz>
Wed, 24 May 2023 07:46:45 +0000 (09:46 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Tue, 4 Jul 2023 05:14:22 +0000 (07:14 +0200)
commitce8c639a6c539534be14a540e7c3e9933d3a34ef
tree5f261f2547bf861a8b1a30f46ae79ee94d75c1c2
parent816933bee6e6b68156f6aeea083117208bf859f8
kernel: introduce KERNEL_WERROR config option

In commit b2d1eb717b65 ("generic: 5.15: enable Werror by default for
kernel compile") CONFIG_WERROR=y was enabled and all warnings/errors
reported with GCC 12 were fixed.

Keeping this in sync with past/future GCC versions is going to be uphill
battle, so lets introduce new KERNEL_WERROR config option, enable it by
default only for tested/known working combinations and on buildbots.

References: #12687
Signed-off-by: Petr Štetiar <ynezz@true.cz>
config/Config-kernel.in
target/linux/generic/config-5.15
target/linux/generic/config-6.1