eepro100: fix compile warning
PATCH 1/1 eepro100: fix compile warning
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
--- hw/net/eepro100.c | 1 - 1 file changed, 1 deletion(-)
hw/net/eepro100.c +0 -1
@@ -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: */
Signature · 1 line
1.8.3.rc2.10.g0c2b1cf
Stefan Hajnoczi
NAKQuoted 4 lines · Wanlong Gao
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:
This #include does not exist in qemu.git/master. Therefore this patch breaks the build.
NACK
Quoted 10 lines · Stefan Hajnoczi
Quoted 4 lines · Wanlong Gao
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:This #include does not exist in qemu.git/master. Therefore this patch breaks the build.
NACK
Oops, sorry it's my fault.
Thanks,
Wanlong Gao