提交 21cbfe5f 编写于 作者: P Peter Maydell

xen: Clean up includes

Clean up includes so that osdep.h is included first and headers
which it implies are not included manually.

This commit was created with scripts/clean-includes.
Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
Message-id: 1453832250-766-14-git-send-email-peter.maydell@linaro.org
上级 8ef94f0b
...@@ -19,14 +19,9 @@ ...@@ -19,14 +19,9 @@
* with this program; if not, see <http://www.gnu.org/licenses/>. * with this program; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include <stdlib.h> #include "qemu/osdep.h"
#include <errno.h>
#include <string.h>
#include <sys/select.h> #include <sys/select.h>
#include <fcntl.h>
#include <unistd.h>
#include <termios.h> #include <termios.h>
#include <stdarg.h>
#include <sys/mman.h> #include <sys/mman.h>
#include "hw/hw.h" #include "hw/hw.h"
......
...@@ -24,16 +24,8 @@ ...@@ -24,16 +24,8 @@
* with this program; if not, see <http://www.gnu.org/licenses/>. * with this program; if not, see <http://www.gnu.org/licenses/>.
*/ */
#include <stdarg.h> #include "qemu/osdep.h"
#include <stdlib.h>
#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/mman.h> #include <sys/mman.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include "hw/hw.h" #include "hw/hw.h"
#include "ui/console.h" #include "ui/console.h"
......
...@@ -19,18 +19,9 @@ ...@@ -19,18 +19,9 @@
* GNU GPL, version 2 or (at your option) any later version. * GNU GPL, version 2 or (at your option) any later version.
*/ */
#include <stdio.h> #include "qemu/osdep.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <unistd.h>
#include <inttypes.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h> #include <sys/mman.h>
#include <sys/wait.h> #include <sys/wait.h>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
* *
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "xen-host-pci-device.h" #include "xen-host-pci-device.h"
......
...@@ -22,15 +22,7 @@ ...@@ -22,15 +22,7 @@
* TODO: add some xenbus / xenstore concepts overview here. * TODO: add some xenbus / xenstore concepts overview here.
*/ */
#include <stdio.h> #include "qemu/osdep.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <inttypes.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h> #include <sys/mman.h>
#include <sys/signal.h> #include <sys/signal.h>
......
#include "qemu/osdep.h"
#include "hw/xen/xen_backend.h" #include "hw/xen/xen_backend.h"
#include "sysemu/block-backend.h" #include "sysemu/block-backend.h"
#include "sysemu/blockdev.h" #include "sysemu/blockdev.h"
......
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
* - Set entry->pirq to '-1'. * - Set entry->pirq to '-1'.
*/ */
#include "qemu/osdep.h"
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include "hw/pci/pci.h" #include "hw/pci/pci.h"
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
* This file implements direct PCI assignment to a HVM guest * This file implements direct PCI assignment to a HVM guest
*/ */
#include "qemu/osdep.h"
#include "qemu/timer.h" #include "qemu/timer.h"
#include "hw/xen/xen_backend.h" #include "hw/xen/xen_backend.h"
#include "xen_pt.h" #include "xen_pt.h"
......
/* /*
* graphics passthrough * graphics passthrough
*/ */
#include "qemu/osdep.h"
#include "xen_pt.h" #include "xen_pt.h"
#include "xen-host-pci-device.h" #include "xen-host-pci-device.h"
#include "hw/xen/xen_backend.h" #include "hw/xen/xen_backend.h"
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
* This file implements direct PCI assignment to a HVM guest * This file implements direct PCI assignment to a HVM guest
*/ */
#include "qemu/osdep.h"
#include <sys/mman.h> #include <sys/mman.h>
#include "hw/xen/xen_backend.h" #include "hw/xen/xen_backend.h"
......
#include <signal.h> #include "qemu/osdep.h"
#include "hw/xen/xen_backend.h" #include "hw/xen/xen_backend.h"
#include "xen_domainbuild.h" #include "xen_domainbuild.h"
#include "qemu/timer.h" #include "qemu/timer.h"
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "qemu/osdep.h"
#include "hw/hw.h" #include "hw/hw.h"
#include "hw/boards.h" #include "hw/boards.h"
#include "hw/xen/xen_backend.h" #include "hw/xen/xen_backend.h"
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
* See the COPYING file in the top-level directory. * See the COPYING file in the top-level directory.
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "hw/xen/xen.h" #include "hw/xen/xen.h"
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
* GNU GPL, version 2 or (at your option) any later version. * GNU GPL, version 2 or (at your option) any later version.
*/ */
#include "qemu/osdep.h"
#include "hw/xen/xen_backend.h" #include "hw/xen/xen_backend.h"
#include "qmp-commands.h" #include "qmp-commands.h"
#include "sysemu/char.h" #include "sysemu/char.h"
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
* GNU GPL, version 2 or (at your option) any later version. * GNU GPL, version 2 or (at your option) any later version.
*/ */
#include "qemu/osdep.h"
#include "qemu-common.h" #include "qemu-common.h"
#include "hw/xen/xen.h" #include "hw/xen/xen.h"
#include "exec/memory.h" #include "exec/memory.h"
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
* GNU GPL, version 2 or (at your option) any later version. * GNU GPL, version 2 or (at your option) any later version.
*/ */
#include "qemu/osdep.h"
#include <sys/mman.h> #include <sys/mman.h>
#include "hw/pci/pci.h" #include "hw/pci/pci.h"
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* GNU GPL, version 2 or (at your option) any later version. * GNU GPL, version 2 or (at your option) any later version.
*/ */
#include "config.h" #include "qemu/osdep.h"
#include <sys/resource.h> #include <sys/resource.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册