From 2ebef53381b306047b44828007f6bdae47ffb7f0 Mon Sep 17 00:00:00 2001 From: Quentin Schulz Date: Mon, 13 Apr 2026 11:08:27 +0200 Subject: [PATCH] Revert "linux: disable -Werror" This reverts commit 6b56e0b4f09b36140e2cb9e41072d5ac6074f375. commit 6b56e0b4f09b ("linux: disable -Werror") said we needed to disable CONFIG_WERROR in the kernel because it failed to build the esp-hosted kernel module. This was very much the hammer approach because a) it'd be better to fix the warnings in the kernel module or b) disable the kernel's CONFIG_WERROR *only* if esp-hosted is to be built, via the ESP_HOSTED_LINUX_CONFIG_FIXUPS variable in package/esp-hosted/esp-hosted.mk. This is a simple revert without making any change to any kernel module (including esp-hosted) because all upstream Buildroot defconfigs with a kernel module enabled build fine today (albeit with warnings). The two defconfigs that were pointed at by the now-reverted commit all have been (updated for and) run on master without failing the build. Suggested-by: Arnout Vandecappelle Signed-off-by: Quentin Schulz Signed-off-by: Arnout Vandecappelle (cherry picked from commit a966f5cde5beef557fed3a271895089e62649f6b) Signed-off-by: Thomas Perale --- linux/linux.mk | 1 - 1 file changed, 1 deletion(-) diff --git a/linux/linux.mk b/linux/linux.mk index c61089bfe0..79117275f7 100644 --- a/linux/linux.mk +++ b/linux/linux.mk @@ -474,7 +474,6 @@ define LINUX_KCONFIG_FIXUP_CMDS $(call KCONFIG_ENABLE_OPT,CONFIG_LOGO) $(call KCONFIG_ENABLE_OPT,CONFIG_LOGO_LINUX_CLUT224)) $(call KCONFIG_DISABLE_OPT,CONFIG_GCC_PLUGINS) - $(call KCONFIG_DISABLE_OPT,CONFIG_WERROR) $(PACKAGES_LINUX_CONFIG_FIXUPS) endef