summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2023-06-09 10:46:42 +0200
committerMasahiro Yamada <masahiroy@kernel.org>2023-06-10 09:39:27 +0200
commitdd203fefd9c9e28bc141d144e032e263804c90bb (patch)
tree3bf75f9ef130e653ad4a49e4be1f3c6faa424019 /scripts
parentkernel-doc: don't let V=1 change outcome (diff)
downloadlinux-dd203fefd9c9e28bc141d144e032e263804c90bb.tar.xz
linux-dd203fefd9c9e28bc141d144e032e263804c90bb.zip
kbuild: enable kernel-doc -Wall for W=2
For W=2, we can enable more kernel-doc warnings, such as missing return value descriptions etc. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index a0b4fb58201c..ddd644bd032d 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -101,7 +101,9 @@ else ifeq ($(KBUILD_CHECKSRC),2)
endif
ifneq ($(KBUILD_EXTRA_WARN),)
- cmd_checkdoc = $(srctree)/scripts/kernel-doc -none $(KDOCFLAGS) $<
+ cmd_checkdoc = $(srctree)/scripts/kernel-doc -none $(KDOCFLAGS) \
+ $(if $(findstring 2, $(KBUILD_EXTRA_WARN)), -Wall) \
+ $<
endif
# Compile C sources (.c)