lkml.org 
[lkml]   [2011]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3.2] kbuild: implement several W= levels
On Wed, Apr 27, 2011 at 10:15:27PM +0200, Borislav Petkov wrote:
> From: Sam Ravnborg <sam@ravnborg.org>
>
> Building a kernel with "make W=1" produces far too much noise to be
> useful.
>
> Divide the warning options in three groups:
>
> W=1 - warnings that may be relevant and does not occur too often
> W=2 - warnings that occur quite often but may still be relevant
> W=3 - the more obscure warnings, can most likely be ignored
>
> When building the whole kernel, those levels produce:
>
> W=1 - 4859 warnings
> W=2 - 1394 warnings
> W=3 - 86666 warnings
>
> respectively. Warnings have been counted with Geert's script at
>
> http://www.kernel.org/pub/linux/kernel/people/geert/linux-log/linux-log-summary.pl
>
> Many warnings occur from .h files so fixing one file may have a nice
> effect on the total number of warnings.
>
> With these changes I am actually tempted to try W=1 now and then.
> Previously there was just too much noise.
>
> Borislav:
>
> - make the W= levels exclusive
> - move very noisy and making little sense for the kernel warnings to W=3
> - drop -Woverlength-strings due to useless warning message
> - copy explanatory text for the different warning levels to 'make help'
> - recount warnings per level
>
> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
> Signed-off-by: Borislav Petkov <bp@alien8.de>
> Cc: Dave Jones <davej@redhat.com>
> Cc: Geert Uytterhoeven <geert@linux-m68k.org>
> ---

Looks good. Michal - please apply.

Sam


\
 
 \ /
  Last update: 2011-04-27 22:49    [W:0.191 / U:0.640 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site