Browse Source

all: 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: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1454089805-5470-16-git-send-email-peter.maydell@linaro.org
tags/v2.6.0-rc0
Peter Maydell 3 years ago
parent
commit
d38ea87ac5
65 changed files with 66 additions and 101 deletions
  1. 1
    0
      accel.c
  2. 1
    0
      aio-posix.c
  3. 1
    0
      aio-win32.c
  4. 1
    1
      arch_init.c
  5. 1
    0
      async.c
  6. 1
    0
      balloon.c
  7. 1
    3
      block.c
  8. 1
    0
      blockdev-nbd.c
  9. 1
    0
      blockdev.c
  10. 1
    1
      blockjob.c
  11. 1
    0
      bootdevice.c
  12. 1
    1
      bt-host.c
  13. 1
    0
      bt-vhci.c
  14. 1
    0
      device-hotplug.c
  15. 1
    6
      device_tree.c
  16. 1
    2
      disas.c
  17. 1
    0
      dma-helpers.c
  18. 1
    1
      dump.c
  19. 1
    2
      fpu/softfloat.c
  20. 1
    8
      gdbstub.c
  21. 1
    0
      hmp.c
  22. 1
    1
      iohandler.c
  23. 1
    0
      ioport.c
  24. 1
    0
      iothread.c
  25. 1
    2
      kvm-all.c
  26. 1
    0
      kvm-stub.c
  27. 1
    0
      main-loop.c
  28. 1
    1
      memory.c
  29. 1
    0
      memory_mapping.c
  30. 1
    1
      module-common.c
  31. 1
    1
      monitor.c
  32. 1
    0
      nbd/client.c
  33. 1
    0
      nbd/common.c
  34. 1
    0
      nbd/server.c
  35. 1
    0
      numa.c
  36. 1
    5
      os-posix.c
  37. 1
    6
      os-win32.c
  38. 1
    7
      page_cache.c
  39. 1
    0
      qdev-monitor.c
  40. 2
    11
      qemu-bridge-helper.c
  41. 1
    7
      qemu-char.c
  42. 1
    4
      qemu-nbd.c
  43. 1
    1
      qemu-seccomp.c
  44. 1
    0
      qemu-timer.c
  45. 1
    1
      qjson.c
  46. 1
    0
      qmp.c
  47. 1
    0
      qtest.c
  48. 1
    0
      replay/replay-events.c
  49. 1
    0
      replay/replay-input.c
  50. 1
    0
      replay/replay-internal.c
  51. 1
    0
      replay/replay-time.c
  52. 1
    0
      replay/replay.c
  53. 1
    2
      spice-qemu-char.c
  54. 1
    1
      tcg-runtime.c
  55. 1
    1
      tci.c
  56. 1
    1
      thread-pool.c
  57. 1
    3
      thunk.c
  58. 1
    1
      tpm.c
  59. 1
    0
      trace/control.c
  60. 1
    4
      trace/ftrace.c
  61. 1
    0
      trace/qmp.c
  62. 1
    5
      trace/simple.c
  63. 1
    2
      user-exec.c
  64. 1
    0
      util/log.c
  65. 1
    8
      vl.c

+ 1
- 0
accel.c View File

@@ -23,6 +23,7 @@
23 23
  * THE SOFTWARE.
24 24
  */
25 25
 
26
+#include "qemu/osdep.h"
26 27
 #include "sysemu/accel.h"
27 28
 #include "hw/boards.h"
28 29
 #include "qemu-common.h"

+ 1
- 0
aio-posix.c View File

@@ -13,6 +13,7 @@
13 13
  * GNU GPL, version 2 or (at your option) any later version.
14 14
  */
15 15
 
16
+#include "qemu/osdep.h"
16 17
 #include "qemu-common.h"
17 18
 #include "block/block.h"
18 19
 #include "qemu/queue.h"

+ 1
- 0
aio-win32.c View File

@@ -15,6 +15,7 @@
15 15
  * GNU GPL, version 2 or (at your option) any later version.
16 16
  */
17 17
 
18
+#include "qemu/osdep.h"
18 19
 #include "qemu-common.h"
19 20
 #include "block/block.h"
20 21
 #include "qemu/queue.h"

+ 1
- 1
arch_init.c View File

@@ -21,7 +21,7 @@
21 21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 22
  * THE SOFTWARE.
23 23
  */
24
-#include <stdint.h>
24
+#include "qemu/osdep.h"
25 25
 #include "sysemu/sysemu.h"
26 26
 #include "sysemu/arch_init.h"
27 27
 #include "hw/pci/pci.h"

+ 1
- 0
async.c View File

@@ -22,6 +22,7 @@
22 22
  * THE SOFTWARE.
23 23
  */
24 24
 
25
+#include "qemu/osdep.h"
25 26
 #include "qemu-common.h"
26 27
 #include "block/aio.h"
27 28
 #include "block/thread-pool.h"

+ 1
- 0
balloon.c View File

@@ -24,6 +24,7 @@
24 24
  * THE SOFTWARE.
25 25
  */
26 26
 
27
+#include "qemu/osdep.h"
27 28
 #include "qemu-common.h"
28 29
 #include "exec/cpu-common.h"
29 30
 #include "sysemu/kvm.h"

+ 1
- 3
block.c View File

@@ -21,7 +21,7 @@
21 21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 22
  * THE SOFTWARE.
23 23
  */
24
-#include "config-host.h"
24
+#include "qemu/osdep.h"
25 25
 #include "qemu-common.h"
26 26
 #include "trace.h"
27 27
 #include "block/block_int.h"
@@ -42,8 +42,6 @@
42 42
 #include "block/throttle-groups.h"
43 43
 
44 44
 #ifdef CONFIG_BSD
45
-#include <sys/types.h>
46
-#include <sys/stat.h>
47 45
 #include <sys/ioctl.h>
48 46
 #include <sys/queue.h>
49 47
 #ifndef __DragonFly__

+ 1
- 0
blockdev-nbd.c View File

@@ -9,6 +9,7 @@
9 9
  * later.  See the COPYING file in the top-level directory.
10 10
  */
11 11
 
12
+#include "qemu/osdep.h"
12 13
 #include "sysemu/blockdev.h"
13 14
 #include "sysemu/block-backend.h"
14 15
 #include "hw/block/block.h"

+ 1
- 0
blockdev.c View File

@@ -30,6 +30,7 @@
30 30
  * THE SOFTWARE.
31 31
  */
32 32
 
33
+#include "qemu/osdep.h"
33 34
 #include "sysemu/block-backend.h"
34 35
 #include "sysemu/blockdev.h"
35 36
 #include "hw/block/block.h"

+ 1
- 1
blockjob.c View File

@@ -23,7 +23,7 @@
23 23
  * THE SOFTWARE.
24 24
  */
25 25
 
26
-#include "config-host.h"
26
+#include "qemu/osdep.h"
27 27
 #include "qemu-common.h"
28 28
 #include "trace.h"
29 29
 #include "block/block.h"

+ 1
- 0
bootdevice.c View File

@@ -22,6 +22,7 @@
22 22
  * THE SOFTWARE.
23 23
  */
24 24
 
25
+#include "qemu/osdep.h"
25 26
 #include "sysemu/sysemu.h"
26 27
 #include "qapi/visitor.h"
27 28
 #include "qemu/error-report.h"

+ 1
- 1
bt-host.c View File

@@ -17,12 +17,12 @@
17 17
  * with this program; if not, see <http://www.gnu.org/licenses/>.
18 18
  */
19 19
 
20
+#include "qemu/osdep.h"
20 21
 #include "qemu-common.h"
21 22
 #include "sysemu/bt.h"
22 23
 #include "qemu/main-loop.h"
23 24
 
24 25
 #ifndef _WIN32
25
-# include <errno.h>
26 26
 # include <sys/ioctl.h>
27 27
 # include <sys/uio.h>
28 28
 # ifdef CONFIG_BLUEZ

+ 1
- 0
bt-vhci.c View File

@@ -17,6 +17,7 @@
17 17
  * with this program; if not, see <http://www.gnu.org/licenses/>.
18 18
  */
19 19
 
20
+#include "qemu/osdep.h"
20 21
 #include "qemu-common.h"
21 22
 #include "sysemu/bt.h"
22 23
 #include "hw/bt.h"

+ 1
- 0
device-hotplug.c View File

@@ -22,6 +22,7 @@
22 22
  * THE SOFTWARE.
23 23
  */
24 24
 
25
+#include "qemu/osdep.h"
25 26
 #include "hw/hw.h"
26 27
 #include "hw/boards.h"
27 28
 #include "sysemu/block-backend.h"

+ 1
- 6
device_tree.c View File

@@ -11,12 +11,7 @@
11 11
  *
12 12
  */
13 13
 
14
-#include <stdio.h>
15
-#include <sys/types.h>
16
-#include <sys/stat.h>
17
-#include <fcntl.h>
18
-#include <unistd.h>
19
-#include <stdlib.h>
14
+#include "qemu/osdep.h"
20 15
 
21 16
 #include "qemu-common.h"
22 17
 #include "qemu/error-report.h"

+ 1
- 2
disas.c View File

@@ -1,9 +1,8 @@
1 1
 /* General "disassemble this chunk" code.  Used for debugging. */
2
-#include "config.h"
2
+#include "qemu/osdep.h"
3 3
 #include "qemu-common.h"
4 4
 #include "disas/bfd.h"
5 5
 #include "elf.h"
6
-#include <errno.h>
7 6
 
8 7
 #include "cpu.h"
9 8
 #include "disas/disas.h"

+ 1
- 0
dma-helpers.c View File

@@ -7,6 +7,7 @@
7 7
  * (GNU GPL), version 2 or later.
8 8
  */
9 9
 
10
+#include "qemu/osdep.h"
10 11
 #include "sysemu/block-backend.h"
11 12
 #include "sysemu/dma.h"
12 13
 #include "trace.h"

+ 1
- 1
dump.c View File

@@ -11,6 +11,7 @@
11 11
  *
12 12
  */
13 13
 
14
+#include "qemu/osdep.h"
14 15
 #include "qemu-common.h"
15 16
 #include "elf.h"
16 17
 #include "cpu.h"
@@ -22,7 +23,6 @@
22 23
 #include "sysemu/sysemu.h"
23 24
 #include "sysemu/memory_mapping.h"
24 25
 #include "sysemu/cpus.h"
25
-#include "qapi/error.h"
26 26
 #include "qapi/qmp/qerror.h"
27 27
 #include "qmp-commands.h"
28 28
 

+ 1
- 2
fpu/softfloat.c View File

@@ -82,12 +82,11 @@ this code that are retained.
82 82
 /* softfloat (and in particular the code in softfloat-specialize.h) is
83 83
  * target-dependent and needs the TARGET_* macros.
84 84
  */
85
-#include "config.h"
85
+#include "qemu/osdep.h"
86 86
 
87 87
 #include "fpu/softfloat.h"
88 88
 
89 89
 /* We only need stdlib for abort() */
90
-#include <stdlib.h>
91 90
 
92 91
 /*----------------------------------------------------------------------------
93 92
 | Primitive arithmetic functions, including multi-word arithmetic, and

+ 1
- 8
gdbstub.c View File

@@ -16,16 +16,9 @@
16 16
  * You should have received a copy of the GNU Lesser General Public
17 17
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
18 18
  */
19
-#include "config.h"
19
+#include "qemu/osdep.h"
20 20
 #include "qemu-common.h"
21 21
 #ifdef CONFIG_USER_ONLY
22
-#include <stdlib.h>
23
-#include <stdio.h>
24
-#include <stdarg.h>
25
-#include <string.h>
26
-#include <errno.h>
27
-#include <unistd.h>
28
-#include <fcntl.h>
29 22
 
30 23
 #include "qemu.h"
31 24
 #else

+ 1
- 0
hmp.c View File

@@ -13,6 +13,7 @@
13 13
  * GNU GPL, version 2 or (at your option) any later version.
14 14
  */
15 15
 
16
+#include "qemu/osdep.h"
16 17
 #include "hmp.h"
17 18
 #include "net/net.h"
18 19
 #include "net/eth.h"

+ 1
- 1
iohandler.c View File

@@ -22,7 +22,7 @@
22 22
  * THE SOFTWARE.
23 23
  */
24 24
 
25
-#include "config-host.h"
25
+#include "qemu/osdep.h"
26 26
 #include "qemu-common.h"
27 27
 #include "qemu/queue.h"
28 28
 #include "block/aio.h"

+ 1
- 0
ioport.c View File

@@ -25,6 +25,7 @@
25 25
  * splitted out ioport related stuffs from vl.c.
26 26
  */
27 27
 
28
+#include "qemu/osdep.h"
28 29
 #include "exec/ioport.h"
29 30
 #include "trace.h"
30 31
 #include "exec/memory.h"

+ 1
- 0
iothread.c View File

@@ -11,6 +11,7 @@
11 11
  *
12 12
  */
13 13
 
14
+#include "qemu/osdep.h"
14 15
 #include "qom/object.h"
15 16
 #include "qom/object_interfaces.h"
16 17
 #include "qemu/module.h"

+ 1
- 2
kvm-all.c View File

@@ -13,10 +13,9 @@
13 13
  *
14 14
  */
15 15
 
16
-#include <sys/types.h>
16
+#include "qemu/osdep.h"
17 17
 #include <sys/ioctl.h>
18 18
 #include <sys/mman.h>
19
-#include <stdarg.h>
20 19
 
21 20
 #include <linux/kvm.h>
22 21
 

+ 1
- 0
kvm-stub.c View File

@@ -10,6 +10,7 @@
10 10
  *
11 11
  */
12 12
 
13
+#include "qemu/osdep.h"
13 14
 #include "qemu-common.h"
14 15
 #include "hw/hw.h"
15 16
 #include "cpu.h"

+ 1
- 0
main-loop.c View File

@@ -22,6 +22,7 @@
22 22
  * THE SOFTWARE.
23 23
  */
24 24
 
25
+#include "qemu/osdep.h"
25 26
 #include "qemu-common.h"
26 27
 #include "qemu/timer.h"
27 28
 #include "qemu/sockets.h"	// struct in_addr needed for libslirp.h

+ 1
- 1
memory.c View File

@@ -13,6 +13,7 @@
13 13
  * GNU GPL, version 2 or (at your option) any later version.
14 14
  */
15 15
 
16
+#include "qemu/osdep.h"
16 17
 #include "exec/memory.h"
17 18
 #include "exec/address-spaces.h"
18 19
 #include "exec/ioport.h"
@@ -21,7 +22,6 @@
21 22
 #include "qemu/error-report.h"
22 23
 #include "qom/object.h"
23 24
 #include "trace.h"
24
-#include <assert.h>
25 25
 
26 26
 #include "exec/memory-internal.h"
27 27
 #include "exec/ram_addr.h"

+ 1
- 0
memory_mapping.c View File

@@ -11,6 +11,7 @@
11 11
  *
12 12
  */
13 13
 
14
+#include "qemu/osdep.h"
14 15
 #include <glib.h>
15 16
 
16 17
 #include "qemu-common.h"

+ 1
- 1
module-common.c View File

@@ -1,4 +1,4 @@
1
-#include "config-host.h"
1
+#include "qemu/osdep.h"
2 2
 #include "qemu/module.h"
3 3
 
4 4
 void qemu_module_dummy(void)

+ 1
- 1
monitor.c View File

@@ -21,6 +21,7 @@
21 21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 22
  * THE SOFTWARE.
23 23
  */
24
+#include "qemu/osdep.h"
24 25
 #include <dirent.h>
25 26
 #include "hw/hw.h"
26 27
 #include "monitor/qdev.h"
@@ -59,7 +60,6 @@
59 60
 #include "qapi/qmp/json-streamer.h"
60 61
 #include "qapi/qmp/json-parser.h"
61 62
 #include <qom/object_interfaces.h>
62
-#include "qemu/osdep.h"
63 63
 #include "cpu.h"
64 64
 #include "trace.h"
65 65
 #include "trace/control.h"

+ 1
- 0
nbd/client.c View File

@@ -16,6 +16,7 @@
16 16
  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
17 17
  */
18 18
 
19
+#include "qemu/osdep.h"
19 20
 #include "nbd-internal.h"
20 21
 
21 22
 static int nbd_errno_to_system_errno(int err)

+ 1
- 0
nbd/common.c View File

@@ -16,6 +16,7 @@
16 16
  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
17 17
  */
18 18
 
19
+#include "qemu/osdep.h"
19 20
 #include "nbd-internal.h"
20 21
 
21 22
 ssize_t nbd_wr_sync(int fd, void *buffer, size_t size, bool do_read)

+ 1
- 0
nbd/server.c View File

@@ -16,6 +16,7 @@
16 16
  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
17 17
  */
18 18
 
19
+#include "qemu/osdep.h"
19 20
 #include "nbd-internal.h"
20 21
 
21 22
 static int system_errno_to_nbd_errno(int err)

+ 1
- 0
numa.c View File

@@ -22,6 +22,7 @@
22 22
  * THE SOFTWARE.
23 23
  */
24 24
 
25
+#include "qemu/osdep.h"
25 26
 #include "sysemu/numa.h"
26 27
 #include "exec/cpu-common.h"
27 28
 #include "qemu/bitmap.h"

+ 1
- 5
os-posix.c View File

@@ -23,10 +23,7 @@
23 23
  * THE SOFTWARE.
24 24
  */
25 25
 
26
-#include <unistd.h>
27
-#include <fcntl.h>
28
-#include <signal.h>
29
-#include <sys/types.h>
26
+#include "qemu/osdep.h"
30 27
 #include <sys/wait.h>
31 28
 /*needed for MAP_POPULATE before including qemu-options.h */
32 29
 #include <sys/mman.h>
@@ -35,7 +32,6 @@
35 32
 #include <libgen.h>
36 33
 
37 34
 /* Needed early for CONFIG_BSD etc. */
38
-#include "config-host.h"
39 35
 #include "sysemu/sysemu.h"
40 36
 #include "net/slirp.h"
41 37
 #include "qemu-options.h"

+ 1
- 6
os-win32.c View File

@@ -22,14 +22,9 @@
22 22
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 23
  * THE SOFTWARE.
24 24
  */
25
+#include "qemu/osdep.h"
25 26
 #include <windows.h>
26 27
 #include <mmsystem.h>
27
-#include <unistd.h>
28
-#include <fcntl.h>
29
-#include <time.h>
30
-#include <errno.h>
31
-#include <sys/time.h>
32
-#include "config-host.h"
33 28
 #include "sysemu/sysemu.h"
34 29
 #include "qemu-options.h"
35 30
 

+ 1
- 7
page_cache.c View File

@@ -12,13 +12,7 @@
12 12
  *
13 13
  */
14 14
 
15
-#include <stdint.h>
16
-#include <stdio.h>
17
-#include <stdlib.h>
18
-#include <string.h>
19
-#include <sys/time.h>
20
-#include <sys/types.h>
21
-#include <stdbool.h>
15
+#include "qemu/osdep.h"
22 16
 #include <glib.h>
23 17
 
24 18
 #include "qemu-common.h"

+ 1
- 0
qdev-monitor.c View File

@@ -17,6 +17,7 @@
17 17
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
18 18
  */
19 19
 
20
+#include "qemu/osdep.h"
20 21
 #include "hw/qdev.h"
21 22
 #include "hw/sysbus.h"
22 23
 #include "monitor/monitor.h"

+ 2
- 11
qemu-bridge-helper.c View File

@@ -13,19 +13,10 @@
13 13
  *
14 14
  */
15 15
 
16
-#include "config-host.h"
17
-
18
-#include <stdio.h>
19
-#include <errno.h>
20
-#include <fcntl.h>
21
-#include <unistd.h>
22
-#include <string.h>
23
-#include <stdlib.h>
24
-#include <stdbool.h>
25
-#include <ctype.h>
16
+#include "qemu/osdep.h"
17
+
26 18
 #include <glib.h>
27 19
 
28
-#include <sys/types.h>
29 20
 #include <sys/ioctl.h>
30 21
 #include <sys/socket.h>
31 22
 #include <sys/un.h>

+ 1
- 7
qemu-char.c View File

@@ -21,6 +21,7 @@
21 21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 22
  * THE SOFTWARE.
23 23
  */
24
+#include "qemu/osdep.h"
24 25
 #include "qemu-common.h"
25 26
 #include "monitor/monitor.h"
26 27
 #include "sysemu/sysemu.h"
@@ -37,11 +38,6 @@
37 38
 #include "io/channel-file.h"
38 39
 #include "io/channel-tls.h"
39 40
 
40
-#include <unistd.h>
41
-#include <fcntl.h>
42
-#include <time.h>
43
-#include <errno.h>
44
-#include <sys/time.h>
45 41
 #include <zlib.h>
46 42
 
47 43
 #ifndef _WIN32
@@ -58,7 +54,6 @@
58 54
 #include <netdb.h>
59 55
 #include <sys/select.h>
60 56
 #ifdef CONFIG_BSD
61
-#include <sys/stat.h>
62 57
 #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
63 58
 #include <dev/ppbus/ppi.h>
64 59
 #include <dev/ppbus/ppbconf.h>
@@ -72,7 +67,6 @@
72 67
 #include <linux/parport.h>
73 68
 #endif
74 69
 #ifdef __sun__
75
-#include <sys/stat.h>
76 70
 #include <sys/ethernet.h>
77 71
 #include <sys/sockio.h>
78 72
 #include <netinet/arp.h>

+ 1
- 4
qemu-nbd.c View File

@@ -16,6 +16,7 @@
16 16
  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
17 17
  */
18 18
 
19
+#include "qemu/osdep.h"
19 20
 #include "qemu-common.h"
20 21
 #include "sysemu/block-backend.h"
21 22
 #include "block/block_int.h"
@@ -27,15 +28,11 @@
27 28
 #include "qapi/util.h"
28 29
 #include "qapi/qmp/qstring.h"
29 30
 
30
-#include <stdarg.h>
31
-#include <stdio.h>
32 31
 #include <getopt.h>
33
-#include <sys/types.h>
34 32
 #include <sys/socket.h>
35 33
 #include <netinet/in.h>
36 34
 #include <netinet/tcp.h>
37 35
 #include <arpa/inet.h>
38
-#include <signal.h>
39 36
 #include <libgen.h>
40 37
 #include <pthread.h>
41 38
 

+ 1
- 1
qemu-seccomp.c View File

@@ -12,7 +12,7 @@
12 12
  * Contributions after 2012-01-13 are licensed under the terms of the
13 13
  * GNU GPL, version 2 or (at your option) any later version.
14 14
  */
15
-#include <stdio.h>
15
+#include "qemu/osdep.h"
16 16
 #include <seccomp.h>
17 17
 #include "sysemu/seccomp.h"
18 18
 

+ 1
- 0
qemu-timer.c View File

@@ -22,6 +22,7 @@
22 22
  * THE SOFTWARE.
23 23
  */
24 24
 
25
+#include "qemu/osdep.h"
25 26
 #include "qemu/main-loop.h"
26 27
 #include "qemu/timer.h"
27 28
 #include "sysemu/replay.h"

+ 1
- 1
qjson.c View File

@@ -11,8 +11,8 @@
11 11
  *
12 12
  */
13 13
 
14
+#include "qemu/osdep.h"
14 15
 #include <qapi/qmp/qstring.h>
15
-#include <stdbool.h>
16 16
 #include <glib.h>
17 17
 #include <qjson.h>
18 18
 #include <qemu/module.h>

+ 1
- 0
qmp.c View File

@@ -13,6 +13,7 @@
13 13
  * GNU GPL, version 2 or (at your option) any later version.
14 14
  */
15 15
 
16
+#include "qemu/osdep.h"
16 17
 #include "qemu-common.h"
17 18
 #include "monitor/monitor.h"
18 19
 #include "sysemu/sysemu.h"

+ 1
- 0
qtest.c View File

@@ -11,6 +11,7 @@
11 11
  *
12 12
  */
13 13
 
14
+#include "qemu/osdep.h"
14 15
 #include "sysemu/qtest.h"
15 16
 #include "hw/qdev.h"
16 17
 #include "sysemu/char.h"

+ 1
- 0
replay/replay-events.c View File

@@ -9,6 +9,7 @@
9 9
  *
10 10
  */
11 11
 
12
+#include "qemu/osdep.h"
12 13
 #include "qemu-common.h"
13 14
 #include "qemu/error-report.h"
14 15
 #include "sysemu/replay.h"

+ 1
- 0
replay/replay-input.c View File

@@ -9,6 +9,7 @@
9 9
  *
10 10
  */
11 11
 
12
+#include "qemu/osdep.h"
12 13
 #include "qemu-common.h"
13 14
 #include "sysemu/replay.h"
14 15
 #include "replay-internal.h"

+ 1
- 0
replay/replay-internal.c View File

@@ -9,6 +9,7 @@
9 9
  *
10 10
  */
11 11
 
12
+#include "qemu/osdep.h"
12 13
 #include "qemu-common.h"
13 14
 #include "sysemu/replay.h"
14 15
 #include "replay-internal.h"

+ 1
- 0
replay/replay-time.c View File

@@ -9,6 +9,7 @@
9 9
  *
10 10
  */
11 11
 
12
+#include "qemu/osdep.h"
12 13
 #include "qemu-common.h"
13 14
 #include "sysemu/replay.h"
14 15
 #include "replay-internal.h"

+ 1
- 0
replay/replay.c View File

@@ -9,6 +9,7 @@
9 9
  *
10 10
  */
11 11
 
12
+#include "qemu/osdep.h"
12 13
 #include "qemu-common.h"
13 14
 #include "sysemu/replay.h"
14 15
 #include "replay-internal.h"

+ 1
- 2
spice-qemu-char.c View File

@@ -1,11 +1,10 @@
1
-#include "config-host.h"
1
+#include "qemu/osdep.h"
2 2
 #include "trace.h"
3 3
 #include "ui/qemu-spice.h"
4 4
 #include "sysemu/char.h"
5 5
 #include <spice.h>
6 6
 #include <spice/protocol.h>
7 7
 
8
-#include "qemu/osdep.h"
9 8
 
10 9
 typedef struct SpiceCharDriver {
11 10
     CharDriverState*      chr;

+ 1
- 1
tcg-runtime.c View File

@@ -21,7 +21,7 @@
21 21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 22
  * THE SOFTWARE.
23 23
  */
24
-#include <stdint.h>
24
+#include "qemu/osdep.h"
25 25
 #include "qemu/host-utils.h"
26 26
 
27 27
 /* This file is compiled once, and thus we can't include the standard

+ 1
- 1
tci.c View File

@@ -17,7 +17,7 @@
17 17
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18 18
  */
19 19
 
20
-#include "config.h"
20
+#include "qemu/osdep.h"
21 21
 
22 22
 /* Defining NDEBUG disables assertions (which makes the code faster). */
23 23
 #if !defined(CONFIG_DEBUG_TCG) && !defined(NDEBUG)

+ 1
- 1
thread-pool.c View File

@@ -14,10 +14,10 @@
14 14
  * Contributions after 2012-01-13 are licensed under the terms of the
15 15
  * GNU GPL, version 2 or (at your option) any later version.
16 16
  */
17
+#include "qemu/osdep.h"
17 18
 #include "qemu-common.h"
18 19
 #include "qemu/queue.h"
19 20
 #include "qemu/thread.h"
20
-#include "qemu/osdep.h"
21 21
 #include "qemu/coroutine.h"
22 22
 #include "trace.h"
23 23
 #include "block/thread-pool.h"

+ 1
- 3
thunk.c View File

@@ -16,9 +16,7 @@
16 16
  * You should have received a copy of the GNU Lesser General Public
17 17
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
18 18
  */
19
-#include <stdlib.h>
20
-#include <stdio.h>
21
-#include <stdarg.h>
19
+#include "qemu/osdep.h"
22 20
 
23 21
 #include "qemu.h"
24 22
 #include "exec/user/thunk.h"

+ 1
- 1
tpm.c View File

@@ -11,7 +11,7 @@
11 11
  *
12 12
  * Based on net.c
13 13
  */
14
-#include "config-host.h"
14
+#include "qemu/osdep.h"
15 15
 
16 16
 #include "qapi/qmp/qerror.h"
17 17
 #include "sysemu/tpm_backend.h"

+ 1
- 0
trace/control.c View File

@@ -7,6 +7,7 @@
7 7
  * See the COPYING file in the top-level directory.
8 8
  */
9 9
 
10
+#include "qemu/osdep.h"
10 11
 #include "trace/control.h"
11 12
 #ifdef CONFIG_TRACE_SIMPLE
12 13
 #include "trace/simple.h"

+ 1
- 4
trace/ftrace.c View File

@@ -9,10 +9,7 @@
9 9
  *
10 10
  */
11 11
 
12
-#include <stdio.h>
13
-#include <string.h>
14
-#include <fcntl.h>
15
-#include <limits.h>
12
+#include "qemu/osdep.h"
16 13
 #include "trace.h"
17 14
 #include "trace/control.h"
18 15
 

+ 1
- 0
trace/qmp.c View File

@@ -7,6 +7,7 @@
7 7
  * See the COPYING file in the top-level directory.
8 8
  */
9 9
 
10
+#include "qemu/osdep.h"
10 11
 #include "qemu/typedefs.h"
11 12
 #include "qmp-commands.h"
12 13
 #include "trace/control.h"

+ 1
- 5
trace/simple.c View File

@@ -8,12 +8,8 @@
8 8
  *
9 9
  */
10 10
 
11
-#include <stdlib.h>
12
-#include <stdint.h>
13
-#include <stdio.h>
14
-#include <time.h>
11
+#include "qemu/osdep.h"
15 12
 #ifndef _WIN32
16
-#include <signal.h>
17 13
 #include <pthread.h>
18 14
 #endif
19 15
 #include "qemu/timer.h"

+ 1
- 2
user-exec.c View File

@@ -16,7 +16,7 @@
16 16
  * You should have received a copy of the GNU Lesser General Public
17 17
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
18 18
  */
19
-#include "config.h"
19
+#include "qemu/osdep.h"
20 20
 #include "cpu.h"
21 21
 #include "disas/disas.h"
22 22
 #include "tcg.h"
@@ -33,7 +33,6 @@
33 33
 #undef ESI
34 34
 #undef EDI
35 35
 #undef EIP
36
-#include <signal.h>
37 36
 #ifdef __linux__
38 37
 #include <sys/ucontext.h>
39 38
 #endif

+ 1
- 0
util/log.c View File

@@ -17,6 +17,7 @@
17 17
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
18 18
  */
19 19
 
20
+#include "qemu/osdep.h"
20 21
 #include "qemu-common.h"
21 22
 #include "qemu/log.h"
22 23
 #include "trace/control.h"

+ 1
- 8
vl.c View File

@@ -21,14 +21,8 @@
21 21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 22
  * THE SOFTWARE.
23 23
  */
24
-#include <unistd.h>
25
-#include <fcntl.h>
26
-#include <signal.h>
27
-#include <time.h>
28
-#include <errno.h>
29
-#include <sys/time.h>
24
+#include "qemu/osdep.h"
30 25
 
31
-#include "config-host.h"
32 26
 
33 27
 #ifdef CONFIG_SECCOMP
34 28
 #include "sysemu/seccomp.h"
@@ -113,7 +107,6 @@ int main(int argc, char **argv)
113 107
 #include "qemu/queue.h"
114 108
 #include "sysemu/cpus.h"
115 109
 #include "sysemu/arch_init.h"
116
-#include "qemu/osdep.h"
117 110
 
118 111
 #include "ui/qemu-spice.h"
119 112
 #include "qapi/string-input-visitor.h"

Loading…
Cancel
Save