Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1479950

Re: [PATCH] drm/sti: mark symbols static where possible

From Emil Velikov <emil.l.velikov@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH] drm/sti: mark symbols static where possible
Date 2016-09-09 14:50 +0200
Message-ID <sftpM-2S8-1@gated-at.bofh.it> (permalink)
References <seITU-7oj-7@gated-at.bofh.it> <sf3Yl-417-15@gated-at.bofh.it> <sf4rn-4qN-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 8 September 2016 at 10:56, Arnd Bergmann <arnd@arndb.de> wrote:
> On Thursday, September 8, 2016 10:35:17 AM CEST Emil Velikov wrote:
>> On 7 September 2016 at 12:05, Baoyou Xie <baoyou.xie@linaro.org> wrote:
>> > We get 2 warnings when building kernel with W=1:
>> As you're going through DRM I was wondering if you have a rough number
>> of warnings we get at the various W levels 1,2,...
>
> I've looked at the W=1 warnings overall, and the count I got a
> month ago was 648 warnings for drivers/gpu/::
>
>     471 -Werror=missing-prototypes
>      12 -Werror=type-limits
>     124 -Werror=unused-but-set-variable
>      41 -Werror=unused-const-variable=
>
> vs for the whole kernel
>
>    2033 -Werror=missing-prototypes
>      58 -Werror=suggest-attribute=format
>     167 -Werror=type-limits
>    1398 -Werror=unused-but-set-variable
>    1526 -Werror=unused-const-variable=
>
> but that was after I had already fixed some of the other warnings
> locally. It shouldn't be hard to fix all of them for any given
> subsystem, often a single line change gets rid of a number
> of individual warnings.
>
Considering the LOC in the kernel, the number are quite small. Still a
fair bit to go.

> My basic idea however is not to do it by subsystem but instead
> do it one warning at a time for the entire kernel and then enable
> that warning by default without W=1.
>
Makes perfect sense. Thanks Arnd !

Keep up the good work gents.

Regards,
Emil

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] drm/sti: mark symbols static where possible Baoyou Xie <baoyou.xie@linaro.org> - 2016-09-07 13:10 +0200
  Re: [PATCH] drm/sti: mark symbols static where possible Emil Velikov <emil.l.velikov@gmail.com> - 2016-09-08 11:40 +0200
    Re: [PATCH] drm/sti: mark symbols static where possible Arnd Bergmann <arnd@arndb.de> - 2016-09-08 12:10 +0200
      Re: [PATCH] drm/sti: mark symbols static where possible Emil Velikov <emil.l.velikov@gmail.com> - 2016-09-09 14:50 +0200
  Re: [PATCH] drm/sti: mark symbols static where possible Benjamin Gaignard <benjamin.gaignard@linaro.org> - 2016-09-08 12:10 +0200

csiph-web