mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
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>
This commit is contained in:
parent
56b0f453db
commit
dd203fefd9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user