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

Message ID 20230602230014.ca0aede8195f.Ibd08cad396b630b68d93b2469905ad55b375af65@changeid
State New
Headers
Series [1/2] kernel-doc: don't let V=1 change outcome |

Commit Message

Johannes Berg June 2, 2023, 9 p.m. UTC
  From: Johannes Berg <johannes.berg@intel.com>

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>
---
 scripts/Makefile.extrawarn | 1 +
 1 file changed, 1 insertion(+)
  

Patch

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
 
 #