kernel: introduce KERNEL_WERROR config option
authorPetr Štetiar <ynezz@true.cz>
Wed, 24 May 2023 07:46:45 +0000 (09:46 +0200)
committerRISCi_ATOM <bob@bobcall.me>
Fri, 19 Apr 2024 21:14:58 +0000 (17:14 -0400)
commitd692b96e6792f24a3010e5e43454698981275af2
tree15364724aa7c0dd4eeb4772af1e957d260215920
parent0f53914ca5e62231f2d5316a6acf714227fd6ba9
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>
(cherry picked from commit ce8c639a6c539534be14a540e7c3e9933d3a34ef)
config/Config-kernel.in
target/linux/generic/config-5.15