]> Git Repo - qemu.git/commitdiff
Clean up includes
authorMarkus Armbruster <[email protected]>
Tue, 4 Dec 2018 17:25:35 +0000 (18:25 +0100)
committerMarkus Armbruster <[email protected]>
Thu, 20 Dec 2018 09:29:08 +0000 (10:29 +0100)
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: <20181204172535[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]>
18 files changed:
contrib/elf2dmp/pdb.h
contrib/elf2dmp/pe.h
contrib/elf2dmp/qemu_elf.h
contrib/vhost-user-blk/vhost-user-blk.c
contrib/vhost-user-scsi/vhost-user-scsi.c
hw/rdma/rdma_utils.c
hw/rdma/rdma_utils.h
hw/rdma/vmw/pvrdma_dev_ring.h
hw/vfio/ap.c
include/qemu/vfio-helpers.h
include/sysemu/whpx.h
target/i386/sev.c
target/i386/whp-dispatch.h
target/riscv/fpu_helper.c
tests/fp/platform.h
tests/tpm-util.h
tests/vhost-user-bridge.c
util/qemu-thread-common.h

index 4351a2dd610d4303c7ac59fc3e93ac6597179c4d..a3a3cac2c1b15fdf6157a2fa633cfdb45bdbee0c 100644 (file)
@@ -8,8 +8,6 @@
 #ifndef PDB_H
 #define PDB_H
 
-#include <stdint.h>
-#include <stdlib.h>
 
 typedef struct GUID {
     unsigned int Data1;
index 374e06a9c570a44747ac3517a8ec17919414a980..dafb26afbb3e4adf96e6053e345326b7ad611603 100644 (file)
@@ -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 */
index d85d6558fa38678116cfb17b3622865328549a5f..86e6e688fb69f3d49c3787da07d06457ec9420c3 100644 (file)
@@ -8,7 +8,6 @@
 #ifndef QEMU_ELF_H
 #define QEMU_ELF_H
 
-#include <stdint.h>
 #include <elf.h>
 
 typedef struct QEMUCPUSegment {
index 571f114a5678ce7c2d7686e68d0db16ad072094a..858221ad95c972be3155e7d625f9d11f54d730dd 100644 (file)
@@ -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;
index 02c29019d17c6dd0fcb797057a4d1b1c2ed4fdd0..496dd6e693b3bde1e69c063bfd3107e5c7546f72 100644 (file)
@@ -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"
 
index dc23f158f383f4d90d5b74732b63ce8de8bca86f..4fbea8cde2f8bc7d27e9484a7b5f7c1a16e797b6 100644 (file)
@@ -13,6 +13,7 @@
  *
  */
 
+#include "qemu/osdep.h"
 #include "rdma_utils.h"
 
 #ifdef PVRDMA_DEBUG
index 04c7c2ef5b658123994ef7c130efda6f9ba6414b..c4f96c4f2a542539942a2979c3b482eabdf5fc70 100644 (file)
@@ -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"
 
index 411d244603e5d2888c9904ec6bfa470c9f782416..5f2a0cf9b9fa85b8b288fc325ce6d11dc94ff8ac 100644 (file)
@@ -16,7 +16,6 @@
 #ifndef PVRDMA_DEV_RING_H
 #define PVRDMA_DEV_RING_H
 
-#include "qemu/typedefs.h"
 
 #define MAX_RING_NAME_SZ 32
 
index 0a25f5e0963b1c6937ed071231107b6c6b194770..6166ccd47a4ad659c6958bf437035f00d1fae7a3 100644 (file)
@@ -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"
index ce7e7b057f2186d398890e38346b607b632bbf88..1f057c2b9e402ade8bbe2aab44a0842b68f3240c 100644 (file)
@@ -12,7 +12,6 @@
 
 #ifndef QEMU_VFIO_HELPERS_H
 #define QEMU_VFIO_HELPERS_H
-#include "qemu/typedefs.h"
 
 typedef struct QEMUVFIOState QEMUVFIOState;
 
index 89592ae4fad18e402a21e56b3b64c7095b514493..d200ee01d08a2f28e343d6147e80e56195f290e4 100644 (file)
@@ -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);
index 2395171acfdbb860d9e8a158c4610044bae20b57..20b2d325d81bdf6d4f280272157b521c3ab66217 100644 (file)
  *
  */
 
+#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"
index d8d34859766512407f2ebdc17070389e3caf0fdd..4ae3cc8fa516eaf1f6d7542e3240f2216fc2be44 100644 (file)
@@ -1,5 +1,4 @@
 #include "windows.h"
-#include <stdbool.h>
 
 #include <WinHvPlatform.h>
 #include <WinHvEmulation.h>
index fdb87d8d82cb2058746176c7c29cf7a4f2fabc78..01b45ca0aed1a78367b6794ce6b484e37ebaf385 100644 (file)
@@ -17,7 +17,6 @@
  */
 
 #include "qemu/osdep.h"
-#include <stdlib.h>
 #include "cpu.h"
 #include "qemu/host-utils.h"
 #include "exec/exec-all.h"
index c20ba70baa0769aebd4075c927df52d153c7983b..f8c423dde3dcde241321bff7a0a6d7f4aca239ee 100644 (file)
@@ -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
index 9e98bc512459349d792a581869406255d47facae..5755698ad2a465846f18ed85e10cc69c9822f4a6 100644 (file)
@@ -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,
index 0cf8d0baca937fe61adf0362e46f0cd38344d68d..0033b61f2ee690980f483031fd7d919b04c7c14a 100644 (file)
@@ -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"
index a0ea7c0d9221199cd0f9639907812c4c41bfc47c..2af6b120853ea1bbbe1e2f14655e94eef117e91b 100644 (file)
@@ -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"
 
This page took 0.061821 seconds and 4 git commands to generate.