From: Anthony PERARD Date: Thu, 21 Jun 2012 11:43:59 +0000 (+0000) Subject: xen: Reorganize includes of Xen headers. X-Git-Tag: v1.2.0-rc0~241^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b41f67197208e7b72ba2207473a74b89a821190a;p=thirdparty%2Fqemu.git xen: Reorganize includes of Xen headers. Because xs.h will be remove in future release of Xen, this patch removes the extra includes of this headers. Also, it removes the extra includes of xenctrl.h and xen/io/xenbus.h as there already are in xen_common.h. Signed-off-by: Anthony PERARD Signed-off-by: Stefano Stabellini --- diff --git a/hw/xen_backend.c b/hw/xen_backend.c index 66cb1443970..f83a1e1d097 100644 --- a/hw/xen_backend.c +++ b/hw/xen_backend.c @@ -34,15 +34,13 @@ #include #include -#include -#include -#include - #include "hw.h" #include "qemu-char.h" #include "qemu-log.h" #include "xen_backend.h" +#include + /* ------------------------------------------------------------- */ /* public */ diff --git a/hw/xen_console.c b/hw/xen_console.c index 3794b1972de..9426d7374f5 100644 --- a/hw/xen_console.c +++ b/hw/xen_console.c @@ -28,14 +28,13 @@ #include #include #include -#include -#include -#include #include "hw.h" #include "qemu-char.h" #include "xen_backend.h" +#include + struct buffer { uint8_t *data; size_t consumed; diff --git a/hw/xen_disk.c b/hw/xen_disk.c index fb68ed9bbf1..e6bb2f20b94 100644 --- a/hw/xen_disk.c +++ b/hw/xen_disk.c @@ -35,14 +35,10 @@ #include #include -#include -#include -#include - #include "hw.h" #include "qemu-char.h" -#include "xen_blkif.h" #include "xen_backend.h" +#include "xen_blkif.h" #include "blockdev.h" /* ------------------------------------------------------------- */ diff --git a/hw/xen_nic.c b/hw/xen_nic.c index 9a59bdad6ed..98db9bb8f67 100644 --- a/hw/xen_nic.c +++ b/hw/xen_nic.c @@ -35,11 +35,6 @@ #include #include -#include -#include -#include -#include - #include "hw.h" #include "net.h" #include "net/checksum.h" @@ -47,6 +42,8 @@ #include "qemu-char.h" #include "xen_backend.h" +#include + /* ------------------------------------------------------------- */ struct XenNetDev { diff --git a/hw/xenfb.c b/hw/xenfb.c index 1bcf171b014..338800a4d9d 100644 --- a/hw/xenfb.c +++ b/hw/xenfb.c @@ -35,19 +35,16 @@ #include #include -#include -#include -#include -#include -#include -#include -#include - #include "hw.h" #include "console.h" #include "qemu-char.h" #include "xen_backend.h" +#include +#include +#include +#include + #ifndef BTN_LEFT #define BTN_LEFT 0x110 /* from */ #endif