Commit bbfff196 authored by Markus Armbruster's avatar Markus Armbruster
Browse files

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
b7d89466.

Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
Message-Id: <20190313162812.8885-1-armbru@redhat.com>
Reviewed-by: default avatarEric Blake <eblake@redhat.com>
[Revert change to tests/fp/platform.h, adjust commit message]
parent efb4f3b6
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -5,9 +5,8 @@
 *
 */

#include <inttypes.h>

#include "qemu/osdep.h"

#include "err.h"
#include "addrspace.h"
#include "pe.h"
+1 −2
Original line number Diff line number Diff line
@@ -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"

+1 −0
Original line number Diff line number Diff line
@@ -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"
+1 −0
Original line number Diff line number Diff line
@@ -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"
+1 −0
Original line number Diff line number Diff line
#include "qemu/osdep.h"
#include "ati_int.h"

#ifdef DEBUG_ATI
Loading