For W=2, we can enable more kernel-doc warnings, such as missing return value descriptions etc.
Showing the changes to scripts (1 of 1 file). Show all
Unified · Split
| @@ -101,7 +101,9 @@ else ifeq ($(KBUILD_CHECKSRC),2) · 100 unmodified lines | ||
| 101 | 101 | endif |
| 102 | 102 | |
| 103 | 103 | ifneq ($(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 | + $< | |
| 105 | 107 | endif |
| 106 | 108 | |
| 107 | 109 | # Compile C sources (.c) |