build warning in drivers/macintosh/rack-meter.c
Michael Ellerman
mpe at ellerman.id.au
Fri Mar 16 21:22:33 AEDT 2018
Stephen Rothwell <sfr at canb.auug.org.au> writes:
> Hi all,
>
> These warnings have beeen around for a while now;
>
> drivers/macintosh/rack-meter.c:157:2: warning: 'memset' used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size]
> memset(rdma->buf1, 0, ARRAY_SIZE(rdma->buf1));
> ^~~~~~
> drivers/macintosh/rack-meter.c:158:2: warning: 'memset' used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size]
> memset(rdma->buf2, 0, ARRAY_SIZE(rdma->buf2));
> ^~~~~~
>
> Introduced by commit
>
> 4f7bef7a9f69 ("drivers: macintosh: rack-meter: fix bogus memsets")
Yep looks like a bug.
Aaro, can you send a patch?
cheers
More information about the Linuxppc-dev
mailing list