From 8466b95f1bd002be07575d4f99c2be7d2688bfa8 Mon Sep 17 00:00:00 2001 From: Umer Saleem Date: Wed, 17 Jul 2024 18:54:55 +0500 Subject: [PATCH] Enable CONFIG_WERROR for TrueNAS kernels Enable CONFIG_ERROR option that treats all warnings as error during kernel build. Signed-off-by: Umer Saleem --- scripts/package/truenas/truenas.config | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/package/truenas/truenas.config b/scripts/package/truenas/truenas.config index 557b8c5baf2c..a48d4903a6a3 100644 --- a/scripts/package/truenas/truenas.config +++ b/scripts/package/truenas/truenas.config @@ -154,3 +154,8 @@ CONFIG_LRU_GEN_ENABLED=n # Disable Multiple Device (md) driver. TrueNAS does not utilize this # driver and we don't support this in the field either. CONFIG_MD=n + +# +# Compile Linux kernel with warnings as errors +# +CONFIG_WERROR=y