From: Paolo Bonzini <pbonzini@redhat.com>
To: "Igor V. Kovalenko" <igor.v.kovalenko@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH] rtl8139: fix clang reporting unused assignment of VLAN tagging data
Date: Fri, 15 Jan 2010 08:08:53 +0100 [thread overview]
Message-ID: <4B501485.3080706@redhat.com> (raw)
In-Reply-To: <20100113225325.6508.46954.stgit@skyserv>
> diff --git a/hw/rtl8139.c b/hw/rtl8139.c
> index 1f4f585..f04dd54 100644
> --- a/hw/rtl8139.c
> +++ b/hw/rtl8139.c
> @@ -1909,6 +1909,7 @@ static int rtl8139_cplus_transmit_one(RTL8139State *s)
>
> cpu_physical_memory_read(cplus_tx_ring_desc, (uint8_t *)&val, 4);
> txdw0 = le32_to_cpu(val);
> + /* TODO: implement VLAN tagging support, VLAN tag data is read to txdw1 */
> cpu_physical_memory_read(cplus_tx_ring_desc+4, (uint8_t *)&val, 4);
> txdw1 = le32_to_cpu(val);
> cpu_physical_memory_read(cplus_tx_ring_desc+8, (uint8_t *)&val, 4);
> @@ -1920,6 +1921,9 @@ static int rtl8139_cplus_transmit_one(RTL8139State *s)
> descriptor,
> txdw0, txdw1, txbufLO, txbufHI));
>
> + /* TODO: the following discard cast should clean clang analyzer output */
> + (void)txdw1;
I don't like this, why not comment it out like here:
> + /* TODO: implement VLAN tagging support, VLAN tag data is read to txdw1 */
> // val = cpu_to_le32(txdw1);
> // cpu_physical_memory_write(cplus_tx_ring_desc+4,&val, 4);
(and maybe change this one as well to #if 0...#endif, I don't know).
Paolo
next prev parent reply other threads:[~2010-01-15 7:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-13 22:53 [Qemu-devel] [PATCH] rtl8139: fix clang reporting unused assignment of VLAN tagging data Igor V. Kovalenko
2010-01-15 7:08 ` Paolo Bonzini [this message]
2010-01-17 8:13 ` [Qemu-devel] " Simon Horman
2010-01-19 22:38 ` [Qemu-devel] " Anthony Liguori
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=4B501485.3080706@redhat.com \
--to=pbonzini@redhat.com \
--cc=igor.v.kovalenko@gmail.com \
--cc=qemu-devel@nongnu.org \
/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;
as well as URLs for NNTP newsgroup(s).