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