Skip to contentSkip to conversation

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

PATCH In review Peter Maydell 3 participants 3 messages Apr 17 – Apr 23 Arm/versatile express platform

lore
Share & tools
lore
#0 lore raw

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
index 0bf519b6bb..03633f3d4f 100644
@@ -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
index 250fdb49b6..441a11100a 100644
@@ -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
index c9558be4d4..e9c19e7e6e 100644
@@ -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
index 254b1610b3..c6991a52e6 100644
@@ -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
index cc6ae7d4c4..b178798085 100644
@@ -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
index 3ba2736bab..4e48970274 100644
@@ -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
index e973b34099..2672eb9e7a 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
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 the machine_add_audiodev_property() function has always been in boards.h.

Signature · 2 lines
Alex Bennée
Virtualisation Tech Lead @ Linaro
#2 lore raw
In reply to Peter Maydell
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 the machine_add_audiodev_property() function has always been in boards.h.

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.