[PATCH RFC next 17/18] scripts/Makefile.build: do not run kernel-docs with warnings

Simon Glass sjg at chromium.org
Mon May 4 22:38:20 CEST 2026


Hi Quentin,

On 2026-05-04T13:20:27, Quentin Schulz <foss+uboot at 0leil.net> wrote:
> scripts/Makefile.build: do not run kernel-docs with warnings
>
> We have too many of them for now and the kernel has switched to a Python
> script with likely many other small changes. We also have a couple of
> patches in our fork, so it'll need to be ported to the new version once
> sync'ed.
>
> For now, let's simply not run kernel-docs with warnings, which allows us
> to use W=e to enable Werror for host and target compilers as well as the
> linker and assembler. This will then be used in buildman in next commit.
>
> Signed-off-by: Quentin Schulz <quentin.schulz at cherry.de>
>
> scripts/Makefile.build | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)

> diff --git a/scripts/Makefile.build b/scripts/Makefile.build
> @@ -127,7 +127,10 @@ else ifeq ($(KBUILD_CHECKSRC),2)
>  endif
>
>  ifneq ($(KBUILD_EXTRA_WARN),)
> -  cmd_checkdoc = $(srctree)/scripts/kernel-doc -none $<
> +  # U-Boot: Too many warnings in our docs and this prevents us from using the
> +  # very convenient W=e to configure -Werror via a Make variable, so silence it
> +  # for now.
> +  # cmd_checkdoc = $(srctree)/scripts/kernel-doc -none $<
>  endif

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list