qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

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
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]

+6 -11
+1 -2
contrib/elf2dmp/main.c
··· 5 5 * 6 6 */ 7 7 8 - #include <inttypes.h> 8 + #include "qemu/osdep.h" 9 9 10 - #include "qemu/osdep.h" 11 10 #include "err.h" 12 11 #include "addrspace.h" 13 12 #include "pe.h"
+1 -2
contrib/elf2dmp/pdb.c
··· 18 18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 19 19 */ 20 20 21 - #include <inttypes.h> 21 + #include "qemu/osdep.h" 22 22 23 - #include "qemu/osdep.h" 24 23 #include "pdb.h" 25 24 #include "err.h" 26 25
+1
hw/display/ati.c
··· 16 16 * No 3D at all yet (maybe after 2D works, but feel free to improve it) 17 17 */ 18 18 19 + #include "qemu/osdep.h" 19 20 #include "ati_int.h" 20 21 #include "ati_regs.h" 21 22 #include "vga_regs.h"
+1
hw/display/ati_2d.c
··· 7 7 * This work is licensed under the GNU GPL license version 2 or later. 8 8 */ 9 9 10 + #include "qemu/osdep.h" 10 11 #include "ati_int.h" 11 12 #include "ati_regs.h" 12 13 #include "qemu/log.h"
+1
hw/display/ati_dbg.c
··· 1 + #include "qemu/osdep.h" 1 2 #include "ati_int.h" 2 3 3 4 #ifdef DEBUG_ATI
-1
hw/display/ati_int.h
··· 9 9 #ifndef ATI_INT_H 10 10 #define ATI_INT_H 11 11 12 - #include "qemu/osdep.h" 13 12 #include "hw/pci/pci.h" 14 13 #include "vga_int.h" 15 14
-1
include/hw/cpu/cluster.h
··· 20 20 #ifndef HW_CPU_CLUSTER_H 21 21 #define HW_CPU_CLUSTER_H 22 22 23 - #include "qemu/osdep.h" 24 23 #include "hw/qdev.h" 25 24 26 25 /*
-4
tests/libqos/qgraph.h
··· 19 19 #ifndef QGRAPH_H 20 20 #define QGRAPH_H 21 21 22 - #include <stdio.h> 23 - #include <stdlib.h> 24 - #include <stdbool.h> 25 22 #include <gmodule.h> 26 - #include <glib.h> 27 23 #include "qemu/module.h" 28 24 #include "malloc.h" 29 25
+1 -1
tests/qos-test.c
··· 16 16 * License along with this library; if not, see <http://www.gnu.org/licenses/> 17 17 */ 18 18 19 - #include <getopt.h> 20 19 #include "qemu/osdep.h" 20 + #include <getopt.h> 21 21 #include "libqtest.h" 22 22 #include "qapi/qmp/qdict.h" 23 23 #include "qapi/qmp/qbool.h"