From: Eduardo Habkost <ehabkost@redhat.com>
To: qemu-devel@nongnu.org, qemu-trivial@nongnu.org
Cc: Paolo Bonzini <pbonzini@redhat.com>
Subject: [Qemu-devel] [PATCH 2/3] bitops.h: Don't include qemu-common.h
Date: Fri, 26 Sep 2014 16:46:03 -0300 [thread overview]
Message-ID: <1411760764-18292-3-git-send-email-ehabkost@redhat.com> (raw)
In-Reply-To: <1411760764-18292-1-git-send-email-ehabkost@redhat.com>
This removes the following circular dependency:
bitops.h -> qemu-common.h -> target-i386/cpu.h -> target-i386/cpu-qom.h ->
qom/cpu.h -> qdev-core.h -> bitmap.h -> bitops.h.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
include/qemu/bitops.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/include/qemu/bitops.h b/include/qemu/bitops.h
index 7e2d5c9..181bd46 100644
--- a/include/qemu/bitops.h
+++ b/include/qemu/bitops.h
@@ -12,7 +12,9 @@
#ifndef BITOPS_H
#define BITOPS_H
-#include "qemu-common.h"
+#include <stdint.h>
+#include <assert.h>
+
#include "host-utils.h"
#define BITS_PER_BYTE CHAR_BIT
--
1.9.3
next prev parent reply other threads:[~2014-09-26 19:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-26 19:46 [Qemu-devel] [PATCH 0/3] bitops: Header dependency fixes Eduardo Habkost
2014-09-26 19:46 ` [Qemu-devel] [PATCH 1/3] tests: Add missing include to test-bitops.c Eduardo Habkost
2014-09-26 19:46 ` Eduardo Habkost [this message]
2014-09-26 19:46 ` [Qemu-devel] [PATCH 3/3] bitmap.h: Don't include qemu-common.h Eduardo Habkost
2014-10-23 6:35 ` [Qemu-devel] [Qemu-trivial] [PATCH 0/3] bitops: Header dependency fixes Michael Tokarev
2014-10-23 12:32 ` Eduardo Habkost
2014-10-23 18:36 ` Michael Tokarev
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=1411760764-18292-3-git-send-email-ehabkost@redhat.com \
--to=ehabkost@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@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).