[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZNzx9IAtsqP3KC/P@casper.infradead.org>
Date: Wed, 16 Aug 2023 16:57:40 +0100
From: Matthew Wilcox <willy@...radead.org>
To: Carlos Bilbao <carlos.bilbao@....com>
Cc: Jani Nikula <jani.nikula@...ux.intel.com>,
Miguel Ojeda <miguel.ojeda.sandonis@...il.com>,
Jonathan Corbet <corbet@....net>,
"linux-doc@...r.kernel.org" <linux-doc@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Avadhut Naik <Avadhut.Naik@....com>,
Miguel Ojeda <ojeda@...nel.org>,
Akira Yokosawa <akiyks@...il.com>
Subject: Re: [RFC] Proposal to relax warnings of htmldocs
On Wed, Aug 16, 2023 at 10:21:07AM -0500, Carlos Bilbao wrote:
> On 8/16/23 10:15, Matthew Wilcox wrote:
> > I wasn't proposing making W=1 builds the default; I was proposing
> > running kernel-doc -none at all levels.
>
> More strict warning level, right? My concern is the same.
The problem you're seeing with kernel-doc warning about undocumented
fields / parameters is due to people not running kernel-doc -none.
So I'm proposing this:
diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index 82e3fb19fdaf..52f57c0c5227 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -100,11 +100,9 @@ else ifeq ($(KBUILD_CHECKSRC),2)
cmd_force_checksrc = $(CHECK) $(CHECKFLAGS) $(c_flags) $<
endif
-ifneq ($(KBUILD_EXTRA_WARN),)
- cmd_checkdoc = $(srctree)/scripts/kernel-doc -none $(KDOCFLAGS) \
+cmd_checkdoc = $(srctree)/scripts/kernel-doc -none $(KDOCFLAGS) \
$(if $(findstring 2, $(KBUILD_EXTRA_WARN)), -Wall) \
$<
-endif
# Compile C sources (.c)
# ---------------------------------------------------------------------------
Now everybody runs kernel-doc -none on every build and you don't get to
see that problem any more.
Powered by blists - more mailing lists