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
#ifndef TESTS_ASPEED_HACE_UTILS_H
#define TESTS_ASPEED_HACE_UTILS_H
-#include "qemu/osdep.h"
#include "libqtest.h"
#include "qemu/bitops.h"
#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"
#include "qemu/timer.h"
#include "qobject/qdict.h"
#include "libqtest-single.h"
-#include "qemu/typedefs.h"
#define AST2600_GPIO_BASE 0x1E780000
#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*
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
-#include <unistd.h>
#include "qemu/osdep.h"
#include "libqtest.h"
#include "qemu/bswap.h"
* THE SOFTWARE.
*/
+#include "qemu/osdep.h"
#include <math.h>
-#include "qemu/osdep.h"
#include "qemu/cutils.h"
#include "qemu/units.h"
*/
#include "qemu/osdep.h"
-#include "glib-compat.h"
#include <locale.h>
#include "qemu/error-report.h"
#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"