summaryrefslogtreecommitdiffstats
path: root/hw/net/vmxnet3.h
diff options
context:
space:
mode:
authorBrad Smith <brad@comstyle.com>2013-08-23 12:28:25 -0400
committerStefan Hajnoczi <stefanha@redhat.com>2013-09-06 17:25:55 +0200
commit3dbb9786e9f5fa8429824818b6f799d8f65d1199 (patch)
treec6282896bd3c8897d2b91dd0076175c2bf218cc3 /hw/net/vmxnet3.h
parente9845f0985f088dd01790f4821026df0afba5795 (diff)
downloadhqemu-3dbb9786e9f5fa8429824818b6f799d8f65d1199.zip
hqemu-3dbb9786e9f5fa8429824818b6f799d8f65d1199.tar.gz
vmxnet3: Eliminate __packed redefined warning
This eliminates a warning about __packed being redefined as exposed by the vmxnet3 code. __packed is not used anywhere in the vmxnet3 code. CC hw/net/vmxnet3.o In file included from hw/net/vmxnet3.c:29: hw/net/vmxnet3.h:37:1: warning: "__packed" redefined In file included from /usr/include/stdlib.h:38, from /buildbot-qemu/default_openbsd_current/build/include/qemu-common.h:26, from /buildbot-qemu/default_openbsd_current/build/include/hw/hw.h:5, from hw/net/vmxnet3.c:18: /usr/include/sys/cdefs.h:209:1: warning: this is the location of the previous definition Signed-off-by: Brad Smith <brad@comstyle.com> Reviewed-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/net/vmxnet3.h')
-rw-r--r--hw/net/vmxnet3.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/net/vmxnet3.h b/hw/net/vmxnet3.h
index 4eae7c7..f987d71 100644
--- a/hw/net/vmxnet3.h
+++ b/hw/net/vmxnet3.h
@@ -34,7 +34,6 @@
#define __le16 uint16_t
#define __le32 uint32_t
#define __le64 uint64_t
-#define __packed QEMU_PACKED
#if defined(HOST_WORDS_BIGENDIAN)
#define __BIG_ENDIAN_BITFIELD
@@ -749,7 +748,6 @@ struct Vmxnet3_DriverShared {
#undef __le16
#undef __le32
#undef __le64
-#undef __packed
#if defined(HOST_WORDS_BIGENDIAN)
#undef __BIG_ENDIAN_BITFIELD
#endif
OpenPOWER on IntegriCloud