@samitouri / QOSamiQemu / commits / 2c1bafb75b

hw/arm, hw/ppc: Remove unnecessary audio.h includes from board code

Some boards (mostly arm, but also ppc/prep) include audio.h, but they don't need anything from it. Drop the unnecessary include lines. These seem to have been introduced with commits 2b16397264a8e, b8ab0303de, which added the machine-default audiodev handling, but as far as I can tell they were unecessary right from the start, as the machine_add_audiodev_property() function has always been in boards.h. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Message-ID: <20260417093805.1076954-1-peter.maydell@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>

Peter Maydell committed Apr 17, 2026 at 10:38 UTC 2c1bafb75b79751280f2a067d00905b0cb931c6e
7 files changed -7
hw/arm/integratorcp.c
-1
@@ -27,7 +27,6 @@
27 #include "hw/core/irq.h"
28 #include "hw/sd/sd.h"
29 #include "qom/object.h"
30 -#include "qemu/audio.h"
30 #include "target/arm/cpu-qom.h"
31
32 #define TYPE_INTEGRATOR_CM "integrator_core"
hw/arm/musicpal.c
-1
@@ -37,7 +37,6 @@
37 #include "qemu/cutils.h"
38 #include "qom/object.h"
39 #include "hw/net/mv88w8618_eth.h"
40 -#include "qemu/audio.h"
40 #include "qemu/error-report.h"
41 #include "target/arm/cpu-qom.h"
42
hw/arm/realview.c
-1
@@ -30,7 +30,6 @@
30 #include "hw/core/irq.h"
31 #include "hw/i2c/arm_sbcon_i2c.h"
32 #include "hw/sd/sd.h"
33 -#include "qemu/audio.h"
33 #include "target/arm/cpu-qom.h"
34
35 #define SMP_BOOT_ADDR 0xe0000000
hw/arm/versatilepb.c
-1
@@ -26,7 +26,6 @@
26 #include "hw/char/pl011.h"
27 #include "hw/sd/sd.h"
28 #include "qom/object.h"
29 -#include "qemu/audio.h"
29 #include "target/arm/cpu-qom.h"
30 #include "qemu/log.h"
31
hw/arm/vexpress.c
-1
@@ -45,7 +45,6 @@
45 #include "hw/sd/sd.h"
46 #include "qobject/qlist.h"
47 #include "qom/object.h"
48 -#include "qemu/audio.h"
48 #include "target/arm/cpu-qom.h"
49
50 #define VEXPRESS_BOARD_ID 0x8e0
hw/arm/xlnx-zcu102.c
-1
@@ -26,7 +26,6 @@
26 #include "system/device_tree.h"
27 #include "qom/object.h"
28 #include "net/can_emu.h"
29 -#include "qemu/audio.h"
29
30 struct XlnxZCU102 {
31 MachineState parent_obj;
hw/ppc/prep.c
-1
@@ -46,7 +46,6 @@
46 #include "trace.h"
47 #include "elf.h"
48 #include "qemu/units.h"
49 -#include "qemu/audio.h"
49
50 /* SMP is not enabled, for now */
51 #define MAX_CPUS 1