[PATCH RFC next 12/18] scripts/Makefile.extrawarn.u-boot: remove redundant Werror handling

Ilias Apalodimas ilias.apalodimas at linaro.org
Tue May 5 07:45:07 CEST 2026


On Mon, 4 May 2026 at 16:20, Quentin Schulz <foss+uboot at 0leil.net> wrote:
>
> From: Quentin Schulz <quentin.schulz at cherry.de>
>
> In the previous commit, scripts/Makefile.extrawarn from the Linux kernel
> gained support for adding -Werror to KBUILD_CPPFLAGS when CONFIG_WERROR
> is enabled, therefore this is now redundant and can be removed.
>
> Signed-off-by: Quentin Schulz <quentin.schulz at cherry.de>
> ---

Reviewed-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>

>  scripts/Makefile.extrawarn.u-boot | 3 ---
>  1 file changed, 3 deletions(-)
>
> diff --git a/scripts/Makefile.extrawarn.u-boot b/scripts/Makefile.extrawarn.u-boot
> index 86f6fbc2301..0a9b49a30f0 100644
> --- a/scripts/Makefile.extrawarn.u-boot
> +++ b/scripts/Makefile.extrawarn.u-boot
> @@ -25,6 +25,3 @@ ifdef CONFIG_CC_IS_CLANG
>  # there are other places as well. For now, we will silence this warning.
>  KBUILD_CFLAGS += $(call cc-disable-warning, deprecated-non-prototype)
>  endif
> -
> -KBUILD_CPPFLAGS-$(CONFIG_WERROR) += -Werror
> -KBUILD_CPPFLAGS += $(KBUILD_CPPFLAGS-y)
>
> --
> 2.54.0
>


More information about the U-Boot mailing list