qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Wanlong Gao <gaowanlong@cn.fujitsu.com>
To: qemu-devel@nongnu.org
Cc: stefanha@gmail.com, Wanlong Gao <gaowanlong@cn.fujitsu.com>
Subject: [Qemu-devel] [PATCH] eepro100: fix compile warning
Date: Wed, 19 Jun 2013 11:12:41 +0800	[thread overview]
Message-ID: <1371611561-5329-1-git-send-email-gaowanlong@cn.fujitsu.com> (raw)

hw/net/eepro100.c:108:0: error: "BIT" redefined [-Werror]
In file included from /work/git/qemu/include/qemu/bitmap.h:16:0,
                 from /work/git/qemu/include/sysemu/sysemu.h:12,
                 from hw/net/eepro100.c:48:
/work/git/qemu/include/qemu/bitops.h:21:0: note: this is the location of the previous definition
cc1: all warnings being treated as errors
make: *** [hw/net/eepro100.o] Error 1

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
---
 hw/net/eepro100.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/hw/net/eepro100.c b/hw/net/eepro100.c
index dc99ea6..478c688 100644
--- a/hw/net/eepro100.c
+++ b/hw/net/eepro100.c
@@ -105,7 +105,6 @@
 #define PCI_IO_SIZE             64
 #define PCI_FLASH_SIZE          (128 * KiB)
 
-#define BIT(n) (1 << (n))
 #define BITS(n, m) (((0xffffffffU << (31 - n)) >> (31 - n + m)) << m)
 
 /* The SCB accepts the following controls for the Tx and Rx units: */
-- 
1.8.3.rc2.10.g0c2b1cf

             reply	other threads:[~2013-06-19  3:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-19  3:12 Wanlong Gao [this message]
2013-06-19  9:10 ` [Qemu-devel] [PATCH] eepro100: fix compile warning Stefan Hajnoczi
2013-06-19  9:18   ` Wanlong Gao

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=1371611561-5329-1-git-send-email-gaowanlong@cn.fujitsu.com \
    --to=gaowanlong@cn.fujitsu.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@gmail.com \
    /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).