diff options
author | Johannes Berg <johannes.berg@intel.com> | 2023-06-09 10:46:42 +0200 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2023-06-10 16:39:27 +0900 |
commit | dd203fefd9c9e28bc141d144e032e263804c90bb (patch) | |
tree | 3bf75f9ef130e653ad4a49e4be1f3c6faa424019 /scripts | |
parent | 56b0f453db74207633019f83758b4c11c66b75d0 (diff) | |
download | linux-stable-dd203fefd9c9e28bc141d144e032e263804c90bb.tar.gz linux-stable-dd203fefd9c9e28bc141d144e032e263804c90bb.tar.bz2 linux-stable-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.build | 4 |
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) |