[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8be2df9936fb405ffaee75d6e24bbac0e938a653.camel@perches.com>
Date: Fri, 13 Sep 2019 13:33:14 -0700
From: Joe Perches <joe@...ches.com>
To: Mauro Carvalho Chehab <mchehab@...nel.org>
Cc: Rob Herring <robherring2@...il.com>,
Bart Van Assche <bvanassche@....org>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
Dan Williams <dan.j.williams@...el.com>,
Dave Jiang <dave.jiang@...el.com>,
ksummit <ksummit-discuss@...ts.linuxfoundation.org>,
linux-nvdimm <linux-nvdimm@...ts.01.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Steve French <stfrench@...rosoft.com>,
Vishal Verma <vishal.l.verma@...el.com>,
Dmitry Vyukov <dvyukov@...gle.com>,
"Tobin C. Harding" <me@...in.cc>
Subject: Re: [Ksummit-discuss] [PATCH v2 0/3] Maintainer Entry Profiles
On Fri, 2019-09-13 at 16:17 -0300, Mauro Carvalho Chehab wrote:
> Em Fri, 13 Sep 2019 11:42:38 -0700
> Joe Perches <joe@...ches.com> escreveu:
[]
> > Just fyi: for an x86-64 defconfig with gcc 8.3
> >
> > $ { make clean ; make defconfig ; make -j4 W=1 ; } > make.log 2>&1
> >
> > There are ~300 W=1 for non kernel-doc -W<foo> warnings.
> >
> > $ grep -i -P -oh '\[\-W[\w\-]+\]' make.log |sort | uniq -c | sort -rn
> > 163 [-Wmissing-prototypes]
> > 69 [-Wunused-but-set-variable]
> > 16 [-Wempty-body]
> > 10 [-Wtype-limits]
> > 6 [-Woverride-init]
> > 2 [-Wstringop-truncation]
> > 2 [-Wcast-function-type]
> > 1 [-Wunused-but-set-parameter]
>
> On my eyes, it doesn't sound too much.
In general, I agree and most of these are pretty
trivial to remove. It'd just take some time to
remove most of the missing-prototypes and
unused-but-set warnings before being able to
enable the warnings at the default W=0.
> I suspect that,
> with gcc-9, it should produce more warnings, though.
It doesn't though.
At least not so far as I can tell.
gcc-9.1 produces the same output.
$ { make clean ; make defconfig ; make CC=/usr/bin/gcc-9 -j4 W=1 V=1 ; } > make_gcc9.log 2>&1
$ grep -i -P -oh '\[\-W[\w\-]+\]' make_gcc9.log | sort | uniq -c | sort -rn
163 [-Wmissing-prototypes]
69 [-Wunused-but-set-variable]
16 [-Wempty-body]
10 [-Wtype-limits]
6 [-Woverride-init]
2 [-Wstringop-truncation]
2 [-Wcast-function-type]
1 [-Wunused-but-set-parameter]
Powered by blists - more mailing lists