1 From 17751f15c2d15782ee24ddcfe991de940dbdc3b0 Mon Sep 17 00:00:00 2001
2 From: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 Date: Wed, 6 Apr 2016 13:28:16 +0200
4 Subject: [PATCH 46/55] pve: cleanup includes all over the place
6 QEMU wants to get a cleaner include system, adapt to it.
8 block/zeroinit.c | 3 +++
9 savevm-async.c | 4 ++++
10 vma-reader.c | 11 +----------
11 vma-writer.c | 12 +++---------
13 5 files changed, 12 insertions(+), 27 deletions(-)
15 diff --git a/block/zeroinit.c b/block/zeroinit.c
16 index 04a9bd0..eb77657 100644
17 --- a/block/zeroinit.c
18 +++ b/block/zeroinit.c
20 * See the COPYING file in the top-level directory.
23 +#include "qemu/osdep.h"
24 +#include "qapi/error.h"
25 #include "block/block_int.h"
26 #include "qapi/qmp/qdict.h"
27 #include "qapi/qmp/qstring.h"
28 +#include "qemu/cutils.h"
32 diff --git a/savevm-async.c b/savevm-async.c
33 index bb4372c..4d73e66 100644
37 +#include "qemu/osdep.h"
38 #include "qemu-common.h"
39 #include "qapi/qmp/qerror.h"
40 #include "qemu/error-report.h"
42 #include "qemu/timer.h"
43 #include "sysemu/block-backend.h"
44 #include "qapi/qmp/qstring.h"
45 +#include "qemu/rcu.h"
46 +#include "qemu/thread.h"
47 +#include "qemu/cutils.h"
49 /* #define DEBUG_SAVEVM_STATE */
51 diff --git a/vma-reader.c b/vma-reader.c
52 index 5d0d3ea..cb58360 100644
64 -#include <sys/types.h>
65 -#include <sys/stat.h>
67 +#include "qemu/osdep.h"
69 #include <uuid/uuid.h>
73 #include "block/block.h"
75 -#define BITS_PER_LONG (sizeof(unsigned long) * CHAR_BIT)
77 static unsigned char zero_vma_block[VMA_BLOCK_SIZE];
79 typedef struct VmaRestoreState {
80 diff --git a/vma-writer.c b/vma-writer.c
81 index 3cde204..e96fb55 100644
93 -#include <sys/types.h>
94 -#include <sys/stat.h>
96 +#include "qemu/osdep.h"
98 #include <uuid/uuid.h>
100 -#include "qemu-common.h"
102 #include "block/block.h"
103 #include "monitor/monitor.h"
104 #include "qemu/main-loop.h"
105 +#include "qemu/coroutine.h"
106 +#include "qemu/cutils.h"
110 diff --git a/vma.c b/vma.c
111 index 46ae14b..c3db633 100644
123 -#include <sys/types.h>
124 -#include <sys/stat.h>
126 +#include "qemu/osdep.h"