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

Quentin Schulz foss+uboot at 0leil.net
Mon May 4 15:20:44 CEST 2026


From: Quentin Schulz <quentin.schulz at cherry.de>

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
index 73b6769ab90..230180fa1f1 100644
--- 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
 
 # Compile C sources (.c)

-- 
2.54.0



More information about the U-Boot mailing list