qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] pci-stub: fix compile breakage with qmp
@ 2011-11-09  1:38 Alexander Graf
  2011-11-09  5:58 ` Stefan Weil
  0 siblings, 1 reply; 14+ messages in thread
From: Alexander Graf @ 2011-11-09  1:38 UTC (permalink / raw)
  To: qemu-devel; +Cc: Luiz Capitulino

Commit 79627472db3 introduced breakage in compiling the s390x-softmmu
target. Instead of compiling, it just throws a lot of errors:

In file included from /dev/shm/qemu/hw/pci-stub.c:24:
./qmp-commands.h:3: error: expected identifier or ‘(’ before ‘{’ token
[...]

This is because we have two files called qmp-commands.h. One resides in
the root directory of the source tree. The other one resides in the target
build directory.

Because pci-stub is not built in libhw, pci-stub.c seems to pick up the
qmp-commands.h file from the target build directory which contains only
definitions of qmp commands, not the function stubs.

This patch at least fixes this breakage for me, allowing me to compile
s390x-softmmu again.

CC: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
---
 hw/pci-stub.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hw/pci-stub.c b/hw/pci-stub.c
index 636171c..ab9789c 100644
--- a/hw/pci-stub.c
+++ b/hw/pci-stub.c
@@ -21,7 +21,7 @@
 #include "sysemu.h"
 #include "monitor.h"
 #include "pci.h"
-#include "qmp-commands.h"
+#include "../qmp-commands.h"
 
 PciInfoList *qmp_query_pci(Error **errp)
 {
-- 
1.6.0.2

^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2011-11-10  9:46 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-09  1:38 [Qemu-devel] [PATCH] pci-stub: fix compile breakage with qmp Alexander Graf
2011-11-09  5:58 ` Stefan Weil
2011-11-09 10:27   ` Andreas Färber
2011-11-09 12:47     ` Luiz Capitulino
2011-11-09 23:45       ` Alexander Graf
2011-11-10  0:51         ` Anthony Liguori
2011-11-10  6:33         ` Stefan Weil
2011-11-10  9:46           ` Andreas Färber
2011-11-09 17:57     ` Anthony Liguori
2011-11-09 18:01       ` Andreas Färber
2011-11-09 23:12         ` Alexander Graf
2011-11-09 23:38           ` Anthony Liguori
2011-11-09 23:44             ` Alexander Graf
2011-11-10  0:47               ` Anthony Liguori

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).