hw/arm, hw/ppc: Remove unnecessary audio.h includes from board code
PATCH 1/1 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.
--- hw/arm/integratorcp.c | 1 - hw/arm/musicpal.c | 1 - hw/arm/realview.c | 1 - hw/arm/versatilepb.c | 1 - hw/arm/vexpress.c | 1 - hw/arm/xlnx-zcu102.c | 1 - hw/ppc/prep.c | 1 - 7 files changed, 7 deletions(-)
hw/arm/integratorcp.c +0 -1
@@ -27,7 +27,6 @@#include "hw/core/irq.h" #include "hw/sd/sd.h" #include "qom/object.h" -#include "qemu/audio.h" #include "target/arm/cpu-qom.h" #define TYPE_INTEGRATOR_CM "integrator_core"
hw/arm/musicpal.c +0 -1
@@ -37,7 +37,6 @@#include "qemu/cutils.h" #include "qom/object.h" #include "hw/net/mv88w8618_eth.h" -#include "qemu/audio.h" #include "qemu/error-report.h" #include "target/arm/cpu-qom.h"
hw/arm/realview.c +0 -1
@@ -30,7 +30,6 @@#include "hw/core/irq.h" #include "hw/i2c/arm_sbcon_i2c.h" #include "hw/sd/sd.h" -#include "qemu/audio.h" #include "target/arm/cpu-qom.h" #define SMP_BOOT_ADDR 0xe0000000
hw/arm/versatilepb.c +0 -1
@@ -26,7 +26,6 @@#include "hw/char/pl011.h" #include "hw/sd/sd.h" #include "qom/object.h" -#include "qemu/audio.h" #include "target/arm/cpu-qom.h" #include "qemu/log.h"
hw/arm/vexpress.c +0 -1
@@ -45,7 +45,6 @@#include "hw/sd/sd.h" #include "qobject/qlist.h" #include "qom/object.h" -#include "qemu/audio.h" #include "target/arm/cpu-qom.h" #define VEXPRESS_BOARD_ID 0x8e0
hw/arm/xlnx-zcu102.c +0 -1
@@ -26,7 +26,6 @@#include "system/device_tree.h" #include "qom/object.h" #include "net/can_emu.h" -#include "qemu/audio.h" struct XlnxZCU102 {MachineState parent_obj;
hw/ppc/prep.c +0 -1
@@ -46,7 +46,6 @@#include "trace.h" #include "elf.h" #include "qemu/units.h" -#include "qemu/audio.h" /* SMP is not enabled, for now */ #define MAX_CPUS 1
Signature · 1 line
2.43.0
Quoted 9 lines · Peter Maydell
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 themachine_add_audiodev_property()function has always been inboards.h.Signed-off-by Peter Maydell <[email protected]>
Signature · 2 lines
Alex Bennée Virtualisation Tech Lead @ Linaro
Quoted 9 lines · Peter Maydell
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 themachine_add_audiodev_property()function has always been inboards.h.Signed-off-by Peter Maydell <[email protected]>
Quoted 9 lines
--- hw/arm/integratorcp.c | 1 - hw/arm/musicpal.c | 1 - hw/arm/realview.c | 1 - hw/arm/versatilepb.c | 1 - hw/arm/vexpress.c | 1 - hw/arm/xlnx-zcu102.c | 1 - hw/ppc/prep.c | 1 - 7 files changed, 7 deletions(-)
Patch queued, thanks.