projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56b0f45
)
kbuild: enable kernel-doc -Wall for W=2
author
Johannes Berg
<johannes.berg@intel.com>
Fri, 9 Jun 2023 08:46:42 +0000
(10:46 +0200)
committer
Masahiro Yamada
<masahiroy@kernel.org>
Sat, 10 Jun 2023 07:39:27 +0000
(16:39 +0900)
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>
scripts/Makefile.build
patch
|
blob
|
blame
|
history
diff --git
a/scripts/Makefile.build
b/scripts/Makefile.build
index a0b4fb58201cb01ea212c4781cc578a6ccacbfb4..ddd644bd032d0866e43f35fb9b57ab64bec09095 100644
(file)
--- 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)