mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
tests: Clean up includes
This commit was created with scripts/clean-includes: ./scripts/clean-includes --git tests tests with one hand-edit to remove a now-empty #ifndef WIN32...#endif from tests/qtest/dbus-display-test.c . All .c should include qemu/osdep.h first. The script performs three related cleanups: * Ensure .c files include qemu/osdep.h first. * Including it in a .h is redundant, since the .c already includes it. Drop such inclusions. * Likewise, including headers qemu/osdep.h includes is redundant. Drop these, too. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Cédric Le Goater <clg@redhat.com> Message-id: 20251104160943.751997-10-peter.maydell@linaro.org
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
#ifndef TESTS_ASPEED_HACE_UTILS_H
|
||||
#define TESTS_ASPEED_HACE_UTILS_H
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include "libqtest.h"
|
||||
#include "qemu/bitops.h"
|
||||
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
#ifndef TESTS_ASPEED_SMC_UTILS_H
|
||||
#define TESTS_ASPEED_SMC_UTILS_H
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include "qemu/bswap.h"
|
||||
#include "libqtest-single.h"
|
||||
#include "qemu/bitops.h"
|
||||
|
||||
@@ -27,7 +27,6 @@
|
||||
#include "qemu/timer.h"
|
||||
#include "qobject/qdict.h"
|
||||
#include "libqtest-single.h"
|
||||
#include "qemu/typedefs.h"
|
||||
|
||||
#define AST2600_GPIO_BASE 0x1E780000
|
||||
|
||||
|
||||
@@ -7,9 +7,6 @@
|
||||
#include <gio/gio.h>
|
||||
#include <gio/gunixfdlist.h>
|
||||
#include "libqtest.h"
|
||||
#ifndef WIN32
|
||||
#include <sys/mman.h>
|
||||
#endif
|
||||
#include "ui/dbus-display1.h"
|
||||
|
||||
static GDBusConnection*
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
#include <unistd.h>
|
||||
#include "qemu/osdep.h"
|
||||
#include "libqtest.h"
|
||||
#include "qemu/bswap.h"
|
||||
|
||||
@@ -25,9 +25,9 @@
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include <math.h>
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include "qemu/cutils.h"
|
||||
#include "qemu/units.h"
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
*/
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include "glib-compat.h"
|
||||
#include <locale.h>
|
||||
|
||||
#include "qemu/error-report.h"
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include <glib/gstdio.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include "io/channel-command.h"
|
||||
#include "io-channel-helpers.h"
|
||||
#include "qapi/error.h"
|
||||
|
||||
Reference in New Issue
Block a user