Skip to contentSkip to conversation

qemu-pixman.h: Avoid mutual inclusion loop with console.h

PATCH Applied Peter Maydell 3 participants 6 messages Jan 21, 2013 – Jan 30, 2013

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 qemu-pixman.h: Avoid mutual inclusion loop with console.h

Remove an unnecessary mutual inclusion loop between qemu-pixman.h and console.h, since the former was only including the latter for 'PixelFormat*', which can be provided by typedefs.h. This requires a minor adjustment to the files which included qemu-pixman.h, since they were relying on it implicitly dragging in all of console.h.

---
Stefan: I've made the obvious change to fix the spice compile issue, but none of my systems have a new enough spice-protocol/spice-server to allow me to configure with spice enabled. I'd appreciate it if you could check it does indeed compile OK now...

 include/ui/qemu-pixman.h   |    2 +-
 include/ui/spice-display.h |    1 +
 ui/qemu-pixman.c           |    3 ++-
 3 files changed, 4 insertions(+), 2 deletions(-)
include/ui/qemu-pixman.h +1 -1
index 016fd87..b032f52 100644
@@ -15,7 +15,7 @@
 #pragma GCC diagnostic error "-Wredundant-decls"
 #endif
 
-#include "console.h"
+#include "qemu/typedefs.h"
 
 /*
  * pixman image formats are defined to be native endian,
include/ui/spice-display.h +1 -0
index 8b192e9..46f9530 100644
@@ -21,6 +21,7 @@
 
 #include "qemu/thread.h"
 #include "ui/qemu-pixman.h"
+#include "ui/console.h"
 #include "sysemu/sysemu.h"
 
 #define NUM_MEMSLOTS 8
ui/qemu-pixman.c +2 -1
index 609335a..6dcbe90 100644
@@ -3,7 +3,8 @@
  * See the COPYING file in the top-level directory.
  */
 
-#include "ui/qemu-pixman.h"
+#include "qemu-common.h"
+#include "ui/console.h"
 
 int qemu_pixman_get_type(int rshift, int gshift, int bshift)
 {
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 4 lines

Stefan: I've made the obvious change to fix the spice compile issue, but none of my systems have a new enough spice-protocol/spice-server to allow me to configure with spice enabled. I'd appreciate it if you could check it does indeed compile OK now...

I'll run this through the buildbot ...

cheers,
Gerd

#2 lore raw
Quoted 6 lines · Gerd Hoffmann
Quoted 4 lines

Stefan: I've made the obvious change to fix the spice compile issue, but none of my systems have a new enough spice-protocol/spice-server to allow me to configure with spice enabled. I'd appreciate it if you could check it does indeed compile OK now...

I'll run this through the buildbot ...

Thanks, and apologies for forgetting to cc you.

-- PMM

Acked-by
#3 lore raw
In reply to Gerd Hoffmann
Quoted 6 lines · Gerd Hoffmann
Quoted 4 lines

Stefan: I've made the obvious change to fix the spice compile issue, but none of my systems have a new enough spice-protocol/spice-server to allow me to configure with spice enabled. I'd appreciate it if you could check it does indeed compile OK now...

I'll run this through the buildbot ...

All green.

Taking through trivial would be a nice service as I don't have any 1.4-ish pixman stuff pending arm.

thanks,
Gerd

#4 lore raw

Ping: Stefan, are you going to take this via -trivial as Gerd suggests?

[patchwork url: http://patchwork.ozlabs.org/patch/214114/ ]

thanks
-- PMM

Quoted 17 lines · Gerd Hoffmann
Quoted 6 lines · Gerd Hoffmann
Quoted 4 lines

Stefan: I've made the obvious change to fix the spice compile issue, but none of my systems have a new enough spice-protocol/spice-server to allow me to configure with spice enabled. I'd appreciate it if you could check it does indeed compile OK now...

I'll run this through the buildbot ...

All green.

Taking through trivial would be a nice service as I don't have any 1.4-ish pixman stuff pending arm.

thanks,
Gerd

#5 lore raw
In reply to Peter Maydell
Quoted 13 lines · Peter Maydell

Remove an unnecessary mutual inclusion loop between qemu-pixman.h and console.h, since the former was only including the latter for 'PixelFormat*', which can be provided by typedefs.h. This requires a minor adjustment to the files which included qemu-pixman.h, since they were relying on it implicitly dragging in all of console.h.

---
Stefan: I've made the obvious change to fix the spice compile issue, but none of my systems have a new enough spice-protocol/spice-server to allow me to configure with spice enabled. I'd appreciate it if you could check it does indeed compile OK now...

Quoted 4 lines
 include/ui/qemu-pixman.h   |    2 +-
 include/ui/spice-display.h |    1 +
 ui/qemu-pixman.c           |    3 ++-
 3 files changed, 4 insertions(+), 2 deletions(-)

Thanks, applied to the trivial patches tree:
https://github.com/stefanha/qemu/commits/trivial-patches

Stefan