]> git.proxmox.com Git - mirror_qemu.git/commitdiff
Clean up includes
authorMarkus Armbruster <armbru@redhat.com>
Wed, 13 Mar 2019 16:28:12 +0000 (17:28 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 13 May 2019 06:58:55 +0000 (08:58 +0200)
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
    slirp/src/*
    target/s390x/gen-features.c
    tests/fp/platform.h
    tests/migration/s390x/a-b-bios.c
    tests/test-rcu-simpleq.c
    tests/test-rcu-tailq.c
    tests/uefi-test-tools/UefiTestToolsPkg/BiosTablesTest/BiosTablesTest.c

We're in the process of spinning out slirp/.  tests/fp/platform.h is
has to include qemu/osdep.h because tests/fp/berkeley-softfloat-3/ and
tests/fp/berkeley-testfloat-3/ don't.  tests/uefi-test-tools/ is guest
software.  The remaining reverts are the same as in commit
b7d89466dde.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20190313162812.8885-1-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
[Revert change to tests/fp/platform.h, adjust commit message]

contrib/elf2dmp/main.c
contrib/elf2dmp/pdb.c
hw/display/ati.c
hw/display/ati_2d.c
hw/display/ati_dbg.c
hw/display/ati_int.h
include/hw/cpu/cluster.h
tests/libqos/qgraph.h
tests/qos-test.c

index 1bfeb89ba7bdeccfe707a6e6cf0267d3e3a9b8da..9a2dbc290214bc56fa02b077f3afdaed8216fc54 100644 (file)
@@ -5,9 +5,8 @@
  *
  */
 
-#include <inttypes.h>
-
 #include "qemu/osdep.h"
+
 #include "err.h"
 #include "addrspace.h"
 #include "pe.h"
index 64af20f5842e3f0424b4a6143514b4857d38d978..a5bd40c99dcae755c30b12ea9f5632872677e8b5 100644 (file)
@@ -18,9 +18,8 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <inttypes.h>
-
 #include "qemu/osdep.h"
+
 #include "pdb.h"
 #include "err.h"
 
index db409be3c9586f82504ea54cf4b78bf18bddd382..75716dd944ec13f3f1220cdcdc5862a79ee23ded 100644 (file)
@@ -16,6 +16,7 @@
  * No 3D at all yet (maybe after 2D works, but feel free to improve it)
  */
 
+#include "qemu/osdep.h"
 #include "ati_int.h"
 #include "ati_regs.h"
 #include "vga_regs.h"
index fe3ae148647b165f59e677be74a843e1a54c4b73..d83c29c6d93305c74e8de953f24d69957d547112 100644 (file)
@@ -7,6 +7,7 @@
  * This work is licensed under the GNU GPL license version 2 or later.
  */
 
+#include "qemu/osdep.h"
 #include "ati_int.h"
 #include "ati_regs.h"
 #include "qemu/log.h"
index 1e6c32624e5ab8d424a9cd4872f7f295a6e9e61e..b045f81d0602e6a63d35643ff94f318a48874308 100644 (file)
@@ -1,3 +1,4 @@
+#include "qemu/osdep.h"
 #include "ati_int.h"
 
 #ifdef DEBUG_ATI
index a6f3e20e6319ec2d4f317386cd547a6d0102748c..2f426064cf7dbc55d9038e52953e06cbf00f2577 100644 (file)
@@ -9,7 +9,6 @@
 #ifndef ATI_INT_H
 #define ATI_INT_H
 
-#include "qemu/osdep.h"
 #include "hw/pci/pci.h"
 #include "vga_int.h"
 
index 549c2d31d438a8ea3c7ca0f2baa794988bbc6464..01c1e50cd2215417146814e2a3f9859ba154043f 100644 (file)
@@ -20,7 +20,6 @@
 #ifndef HW_CPU_CLUSTER_H
 #define HW_CPU_CLUSTER_H
 
-#include "qemu/osdep.h"
 #include "hw/qdev.h"
 
 /*
index ef0c73837a60b3f5b427a255d63d937e17aaa117..e799095b308afd049879a0b2368b13c415791f81 100644 (file)
 #ifndef QGRAPH_H
 #define QGRAPH_H
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdbool.h>
 #include <gmodule.h>
-#include <glib.h>
 #include "qemu/module.h"
 #include "malloc.h"
 
index 6b1145ecccfffb4d94093f97e961ff2aa67f1f28..ae2fb5de1c9b21f2c4f0dbec37fc64a7ab95dcf5 100644 (file)
@@ -16,8 +16,8 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>
  */
 
-#include <getopt.h>
 #include "qemu/osdep.h"
+#include <getopt.h>
 #include "libqtest.h"
 #include "qapi/qmp/qdict.h"
 #include "qapi/qmp/qbool.h"