[PATCH] cpufreq: mvebu: fix integer to pointer cast
Arnd Bergmann
arnd at arndb.de
Thu Jun 9 00:07:08 PDT 2016
On Wednesday, June 8, 2016 9:59:26 AM CEST Ben Dooks wrote:
> On 08/06/16 08:56, Mason wrote:
> > On 07/06/2016 13:30, Ben Dooks wrote:
> >
> >> Fix the use of 0 instead of NULL to clk_get() call. This stops the
> >> following warning:
> >>
> >> drivers/cpufreq/mvebu-cpufreq.c:73:40: warning: Using plain integer as NULL pointer
> >
> > May I ask which compiler/version produced that diagnostic?
>
> I was running with "make C=2 bzImage" for ARM multi_v7_config
>
> $ sparse --version
> v0.5.0
>
I believe gcc-6 will also produce a similar warning when building with
'make W=1'. I've started looking into moving some of the warnings from
W=1 level to default, which can probably be done with relatively little
effort for many warnings.
I see that you are making very good progress at eliminating the
-Wmissing-declarations warnings, which are also at W=1 level. Do
you have an estimate of how many there are? Do you plan to do them
all, or just the ones for some subsystems? I've stayed away from
this one for now since there are lots of such warnings, but it
seems particularly worthwhile.
Arnd
More information about the linux-arm-kernel
mailing list