From: Stephen Rothwell <sfr@canb.auug.org.au>
To: Michael Ellerman <mpe@ellerman.id.au>,
Benjamin Herrenschmidt <benh@kernel.crashing.org>,
PowerPC <linuxppc-dev@lists.ozlabs.org>
Cc: Aaro Koskinen <aaro.koskinen@iki.fi>
Subject: build warning in drivers/macintosh/rack-meter.c
Date: Fri, 16 Mar 2018 16:46:14 +1100 [thread overview]
Message-ID: <20180316164614.07f2f573@canb.auug.org.au> (raw)
[-- Attachment #1: Type: text/plain, Size: 706 bytes --]
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")
I guess updating to a newer compiler has started generating these.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next reply other threads:[~2018-03-16 5:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-16 5:46 Stephen Rothwell [this message]
2018-03-16 9:37 ` build warning in drivers/macintosh/rack-meter.c Aaro Koskinen
2018-03-16 9:50 ` Stephen Rothwell
2018-03-16 10:22 ` Michael Ellerman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180316164614.07f2f573@canb.auug.org.au \
--to=sfr@canb.auug.org.au \
--cc=aaro.koskinen@iki.fi \
--cc=benh@kernel.crashing.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mpe@ellerman.id.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox