From: Stefan Hajnoczi <stefanha@redhat.com>
To: qemu-devel@nongnu.org
Cc: Anthony Liguori <anthony@codemonkey.ws>
Subject: [Qemu-devel] [PULL 4/4] vmxnet3: Eliminate __packed redefined warning
Date: Mon, 2 Sep 2013 13:38:33 +0200 [thread overview]
Message-ID: <1378121913-30494-5-git-send-email-stefanha@redhat.com> (raw)
In-Reply-To: <1378121913-30494-1-git-send-email-stefanha@redhat.com>
From: Brad Smith <brad@comstyle.com>
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>
---
hw/net/vmxnet3.h | 2 --
1 file changed, 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
--
1.8.3.1
next prev parent reply other threads:[~2013-09-02 11:38 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-02 11:38 [Qemu-devel] [PULL 0/4] Net patches Stefan Hajnoczi
2013-09-02 11:38 ` [Qemu-devel] [PULL 1/4] tap: Use numbered tap/tun devices on all *BSD OS's Stefan Hajnoczi
2013-09-02 11:38 ` [Qemu-devel] [PULL 2/4] net: Rename send_queue to incoming_queue Stefan Hajnoczi
2013-09-02 11:38 ` [Qemu-devel] [PULL 3/4] e1000: add interrupt mitigation support Stefan Hajnoczi
2013-09-02 11:38 ` Stefan Hajnoczi [this message]
2013-09-05 18:38 ` [Qemu-devel] [PULL 0/4] Net patches Anthony Liguori
2013-09-06 14:59 ` Stefan Hajnoczi
2013-09-05 19:49 ` Paolo Bonzini
2013-09-05 21:02 ` Aurelien Jarno
2013-09-06 6:03 ` Paolo Bonzini
2013-09-06 14:59 ` Stefan Hajnoczi
2013-09-09 14:49 ` Aurelien Jarno
2013-09-10 7:49 ` Stefan Hajnoczi
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=1378121913-30494-5-git-send-email-stefanha@redhat.com \
--to=stefanha@redhat.com \
--cc=anthony@codemonkey.ws \
--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).