diff options
author | Markus Armbruster <armbru@redhat.com> | 2018-12-04 18:25:35 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2018-12-20 10:29:08 +0100 |
commit | b7d89466dde6889d353e4f76d9cc3460067d8784 (patch) | |
tree | 529c3f616fe9705c25e4e857f290ff1dcad46b4c | |
parent | b72566a4ffaddbc0c0c1f6f5ee91b42ab13ff429 (diff) | |
download | qemu-b7d89466dde6889d353e4f76d9cc3460067d8784.zip qemu-b7d89466dde6889d353e4f76d9cc3460067d8784.tar.gz qemu-b7d89466dde6889d353e4f76d9cc3460067d8784.tar.bz2 |
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 <armbru@redhat.com>
Message-Id: <20181204172535.2799-1-armbru@redhat.com>
Acked-by: Eduardo Habkost <ehabkost@redhat.com>
Acked-by: Halil Pasic <pasic@linux.ibm.com>
Acked-by: Yuval Shaia <yuval.shaia@oracle.com>
Acked-by: Viktor Prutyanov <viktor.prutyanov@phystech.edu>
-rw-r--r-- | contrib/elf2dmp/pdb.h | 2 | ||||
-rw-r--r-- | contrib/elf2dmp/pe.h | 1 | ||||
-rw-r--r-- | contrib/elf2dmp/qemu_elf.h | 1 | ||||
-rw-r--r-- | contrib/vhost-user-blk/vhost-user-blk.c | 1 | ||||
-rw-r--r-- | contrib/vhost-user-scsi/vhost-user-scsi.c | 1 | ||||
-rw-r--r-- | hw/rdma/rdma_utils.c | 1 | ||||
-rw-r--r-- | hw/rdma/rdma_utils.h | 1 | ||||
-rw-r--r-- | hw/rdma/vmw/pvrdma_dev_ring.h | 1 | ||||
-rw-r--r-- | hw/vfio/ap.c | 2 | ||||
-rw-r--r-- | include/qemu/vfio-helpers.h | 1 | ||||
-rw-r--r-- | include/sysemu/whpx.h | 1 | ||||
-rw-r--r-- | target/i386/sev.c | 3 | ||||
-rw-r--r-- | target/i386/whp-dispatch.h | 1 | ||||
-rw-r--r-- | target/riscv/fpu_helper.c | 1 | ||||
-rw-r--r-- | tests/fp/platform.h | 1 | ||||
-rw-r--r-- | tests/tpm-util.h | 1 | ||||
-rw-r--r-- | tests/vhost-user-bridge.c | 2 | ||||
-rw-r--r-- | util/qemu-thread-common.h | 1 |
18 files changed, 5 insertions, 18 deletions
diff --git a/contrib/elf2dmp/pdb.h b/contrib/elf2dmp/pdb.h index 4351a2d..a3a3cac 100644 --- a/contrib/elf2dmp/pdb.h +++ b/contrib/elf2dmp/pdb.h @@ -8,8 +8,6 @@ #ifndef PDB_H #define PDB_H -#include <stdint.h> -#include <stdlib.h> typedef struct GUID { unsigned int Data1; diff --git a/contrib/elf2dmp/pe.h b/contrib/elf2dmp/pe.h index 374e06a..dafb26a 100644 --- a/contrib/elf2dmp/pe.h +++ b/contrib/elf2dmp/pe.h @@ -8,7 +8,6 @@ #ifndef PE_H #define PE_H -#include <stdint.h> typedef struct IMAGE_DOS_HEADER { uint16_t e_magic; /* 0x00: MZ Header signature */ diff --git a/contrib/elf2dmp/qemu_elf.h b/contrib/elf2dmp/qemu_elf.h index d85d655..86e6e68 100644 --- a/contrib/elf2dmp/qemu_elf.h +++ b/contrib/elf2dmp/qemu_elf.h @@ -8,7 +8,6 @@ #ifndef QEMU_ELF_H #define QEMU_ELF_H -#include <stdint.h> #include <elf.h> typedef struct QEMUCPUSegment { diff --git a/contrib/vhost-user-blk/vhost-user-blk.c b/contrib/vhost-user-blk/vhost-user-blk.c index 571f114..858221a 100644 --- a/contrib/vhost-user-blk/vhost-user-blk.c +++ b/contrib/vhost-user-blk/vhost-user-blk.c @@ -20,7 +20,6 @@ #include "contrib/libvhost-user/libvhost-user-glib.h" #include "contrib/libvhost-user/libvhost-user.h" -#include <glib.h> struct virtio_blk_inhdr { unsigned char status; diff --git a/contrib/vhost-user-scsi/vhost-user-scsi.c b/contrib/vhost-user-scsi/vhost-user-scsi.c index 02c2901..496dd6e 100644 --- a/contrib/vhost-user-scsi/vhost-user-scsi.c +++ b/contrib/vhost-user-scsi/vhost-user-scsi.c @@ -16,7 +16,6 @@ #include "contrib/libvhost-user/libvhost-user-glib.h" #include "standard-headers/linux/virtio_scsi.h" -#include <glib.h> #define VUS_ISCSI_INITIATOR "iqn.2016-11.com.nutanix:vhost-user-scsi" diff --git a/hw/rdma/rdma_utils.c b/hw/rdma/rdma_utils.c index dc23f15..4fbea8c 100644 --- a/hw/rdma/rdma_utils.c +++ b/hw/rdma/rdma_utils.c @@ -13,6 +13,7 @@ * */ +#include "qemu/osdep.h" #include "rdma_utils.h" #ifdef PVRDMA_DEBUG diff --git a/hw/rdma/rdma_utils.h b/hw/rdma/rdma_utils.h index 04c7c2e..c4f96c4 100644 --- a/hw/rdma/rdma_utils.h +++ b/hw/rdma/rdma_utils.h @@ -17,7 +17,6 @@ #ifndef RDMA_UTILS_H #define RDMA_UTILS_H -#include "qemu/osdep.h" #include "hw/pci/pci.h" #include "sysemu/dma.h" diff --git a/hw/rdma/vmw/pvrdma_dev_ring.h b/hw/rdma/vmw/pvrdma_dev_ring.h index 411d244..5f2a0cf 100644 --- a/hw/rdma/vmw/pvrdma_dev_ring.h +++ b/hw/rdma/vmw/pvrdma_dev_ring.h @@ -16,7 +16,6 @@ #ifndef PVRDMA_DEV_RING_H #define PVRDMA_DEV_RING_H -#include "qemu/typedefs.h" #define MAX_RING_NAME_SZ 32 diff --git a/hw/vfio/ap.c b/hw/vfio/ap.c index 0a25f5e..6166ccd 100644 --- a/hw/vfio/ap.c +++ b/hw/vfio/ap.c @@ -10,9 +10,9 @@ * directory. */ +#include "qemu/osdep.h" #include <linux/vfio.h> #include <sys/ioctl.h> -#include "qemu/osdep.h" #include "qapi/error.h" #include "hw/sysbus.h" #include "hw/vfio/vfio.h" diff --git a/include/qemu/vfio-helpers.h b/include/qemu/vfio-helpers.h index ce7e7b0..1f057c2 100644 --- a/include/qemu/vfio-helpers.h +++ b/include/qemu/vfio-helpers.h @@ -12,7 +12,6 @@ #ifndef QEMU_VFIO_HELPERS_H #define QEMU_VFIO_HELPERS_H -#include "qemu/typedefs.h" typedef struct QEMUVFIOState QEMUVFIOState; diff --git a/include/sysemu/whpx.h b/include/sysemu/whpx.h index 89592ae..d200ee0 100644 --- a/include/sysemu/whpx.h +++ b/include/sysemu/whpx.h @@ -13,7 +13,6 @@ #ifndef QEMU_WHPX_H #define QEMU_WHPX_H -#include "config-host.h" #include "qemu-common.h" int whpx_init_vcpu(CPUState *cpu); diff --git a/target/i386/sev.c b/target/i386/sev.c index 2395171..20b2d32 100644 --- a/target/i386/sev.c +++ b/target/i386/sev.c @@ -11,12 +11,13 @@ * */ +#include "qemu/osdep.h" + #include <linux/kvm.h> #include <linux/psp-sev.h> #include <sys/ioctl.h> -#include "qemu/osdep.h" #include "qapi/error.h" #include "qom/object_interfaces.h" #include "qemu/base64.h" diff --git a/target/i386/whp-dispatch.h b/target/i386/whp-dispatch.h index d8d3485..4ae3cc8 100644 --- a/target/i386/whp-dispatch.h +++ b/target/i386/whp-dispatch.h @@ -1,5 +1,4 @@ #include "windows.h" -#include <stdbool.h> #include <WinHvPlatform.h> #include <WinHvEmulation.h> diff --git a/target/riscv/fpu_helper.c b/target/riscv/fpu_helper.c index fdb87d8..01b45ca 100644 --- a/target/riscv/fpu_helper.c +++ b/target/riscv/fpu_helper.c @@ -17,7 +17,6 @@ */ #include "qemu/osdep.h" -#include <stdlib.h> #include "cpu.h" #include "qemu/host-utils.h" #include "exec/exec-all.h" diff --git a/tests/fp/platform.h b/tests/fp/platform.h index c20ba70..f8c423d 100644 --- a/tests/fp/platform.h +++ b/tests/fp/platform.h @@ -29,7 +29,6 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include "config-host.h" #ifndef HOST_WORDS_BIGENDIAN #define LITTLEENDIAN 1 diff --git a/tests/tpm-util.h b/tests/tpm-util.h index 9e98bc5..5755698 100644 --- a/tests/tpm-util.h +++ b/tests/tpm-util.h @@ -13,7 +13,6 @@ #ifndef TESTS_TPM_UTIL_H #define TESTS_TPM_UTIL_H -#include "qemu/osdep.h" #include "io/channel-socket.h" typedef void (tx_func)(QTestState *s, diff --git a/tests/vhost-user-bridge.c b/tests/vhost-user-bridge.c index 0cf8d0b..0033b61 100644 --- a/tests/vhost-user-bridge.c +++ b/tests/vhost-user-bridge.c @@ -29,8 +29,8 @@ #define _FILE_OFFSET_BITS 64 -#include "qemu/atomic.h" #include "qemu/osdep.h" +#include "qemu/atomic.h" #include "qemu/iov.h" #include "standard-headers/linux/virtio_net.h" #include "contrib/libvhost-user/libvhost-user.h" diff --git a/util/qemu-thread-common.h b/util/qemu-thread-common.h index a0ea7c0..2af6b12 100644 --- a/util/qemu-thread-common.h +++ b/util/qemu-thread-common.h @@ -13,7 +13,6 @@ #ifndef QEMU_THREAD_COMMON_H #define QEMU_THREAD_COMMON_H -#include "qemu/typedefs.h" #include "qemu/thread.h" #include "trace.h" |