History

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.

Johannes Berg committed 3 years ago

Commit dd203fe1 parent 56b0f451 file · +3 −1Browse files

Unified · Split

scripts/Makefile.build+3−1
@@ -101,7 +101,9 @@ else ifeq ($(KBUILD_CHECKSRC),2) · 100 unmodified lines
101endif101endif
102 102
103ifneq ($(KBUILD_EXTRA_WARN),)103ifneq ($(KBUILD_EXTRA_WARN),)
104 cmd_checkdoc = $(srctree)/scripts/kernel-doc -none $(KDOCFLAGS) $<104 cmd_checkdoc = $(srctree)/scripts/kernel-doc -none $(KDOCFLAGS) \
105 $(if $(findstring 2, $(KBUILD_EXTRA_WARN)), -Wall) \
106 $<
105endif107endif
106 108
107# Compile C sources (.c)109# Compile C sources (.c)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t