Skip to content

Commit b7d8946

Browse files
author
Markus Armbruster
committed
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, with the changes to the following files manually reverted: contrib/libvhost-user/libvhost-user-glib.h contrib/libvhost-user/libvhost-user.c contrib/libvhost-user/libvhost-user.h linux-user/mips64/cpu_loop.c linux-user/mips64/signal.c linux-user/sparc64/cpu_loop.c linux-user/sparc64/signal.c linux-user/x86_64/cpu_loop.c linux-user/x86_64/signal.c target/s390x/gen-features.c tests/migration/s390x/a-b-bios.c tests/test-rcu-simpleq.c tests/test-rcu-tailq.c Signed-off-by: Markus Armbruster <[email protected]> Message-Id: <[email protected]> Acked-by: Eduardo Habkost <[email protected]> Acked-by: Halil Pasic <[email protected]> Acked-by: Yuval Shaia <[email protected]> Acked-by: Viktor Prutyanov <[email protected]>
1 parent b72566a commit b7d8946

File tree

18 files changed

+5
-18
lines changed

18 files changed

+5
-18
lines changed

contrib/elf2dmp/pdb.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
#ifndef PDB_H
99
#define PDB_H
1010

11-
#include <stdint.h>
12-
#include <stdlib.h>
1311

1412
typedef struct GUID {
1513
unsigned int Data1;

contrib/elf2dmp/pe.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#ifndef PE_H
99
#define PE_H
1010

11-
#include <stdint.h>
1211

1312
typedef struct IMAGE_DOS_HEADER {
1413
uint16_t e_magic; /* 0x00: MZ Header signature */

contrib/elf2dmp/qemu_elf.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#ifndef QEMU_ELF_H
99
#define QEMU_ELF_H
1010

11-
#include <stdint.h>
1211
#include <elf.h>
1312

1413
typedef struct QEMUCPUSegment {

contrib/vhost-user-blk/vhost-user-blk.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include "contrib/libvhost-user/libvhost-user-glib.h"
2121
#include "contrib/libvhost-user/libvhost-user.h"
2222

23-
#include <glib.h>
2423

2524
struct virtio_blk_inhdr {
2625
unsigned char status;

contrib/vhost-user-scsi/vhost-user-scsi.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#include "contrib/libvhost-user/libvhost-user-glib.h"
1717
#include "standard-headers/linux/virtio_scsi.h"
1818

19-
#include <glib.h>
2019

2120
#define VUS_ISCSI_INITIATOR "iqn.2016-11.com.nutanix:vhost-user-scsi"
2221

hw/rdma/rdma_utils.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
*
1414
*/
1515

16+
#include "qemu/osdep.h"
1617
#include "rdma_utils.h"
1718

1819
#ifdef PVRDMA_DEBUG

hw/rdma/rdma_utils.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#ifndef RDMA_UTILS_H
1818
#define RDMA_UTILS_H
1919

20-
#include "qemu/osdep.h"
2120
#include "hw/pci/pci.h"
2221
#include "sysemu/dma.h"
2322

hw/rdma/vmw/pvrdma_dev_ring.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#ifndef PVRDMA_DEV_RING_H
1717
#define PVRDMA_DEV_RING_H
1818

19-
#include "qemu/typedefs.h"
2019

2120
#define MAX_RING_NAME_SZ 32
2221

hw/vfio/ap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
* directory.
1111
*/
1212

13+
#include "qemu/osdep.h"
1314
#include <linux/vfio.h>
1415
#include <sys/ioctl.h>
15-
#include "qemu/osdep.h"
1616
#include "qapi/error.h"
1717
#include "hw/sysbus.h"
1818
#include "hw/vfio/vfio.h"

include/qemu/vfio-helpers.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
#ifndef QEMU_VFIO_HELPERS_H
1414
#define QEMU_VFIO_HELPERS_H
15-
#include "qemu/typedefs.h"
1615

1716
typedef struct QEMUVFIOState QEMUVFIOState;
1817

0 commit comments

Comments
 (0)