[PATCH 2/2] kbuild: enable kernel-doc -Wall for W=2

From: Johannes Berg
Date: Fri Jun 02 2023 - 17:00:32 EST


From: Johannes Berg <johannes.berg@xxxxxxxxx>

For W=2, we can enable more kernel-doc warnings,
such as missing return value descriptions etc.

Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx>
---
scripts/Makefile.extrawarn | 1 +
1 file changed, 1 insertion(+)

diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn
index 40cd13eca82e..d77eb2474a67 100644
--- a/scripts/Makefile.extrawarn
+++ b/scripts/Makefile.extrawarn
@@ -85,6 +85,7 @@ KBUILD_CFLAGS += $(call cc-option, -Wunused-macros)

KBUILD_CPPFLAGS += -DKBUILD_EXTRA_WARN2

+export KDOC_WALL=1
endif

#
--
2.40.1