Skip to contentSkip to conversation

hw/audio/virtio-snd: Remove unnecessary "exec/tswap.h" header

PATCH In review Philippe Mathieu-Daudé 3 participants 3 messages Sep 26, 2024 – Oct 3, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/audio/virtio-snd: Remove unnecessary "exec/tswap.h" header

We were including the "exec/tswap.h" header to get target_words_bigendian() declaration, but since commit a276ec8e26 ("hw/audio/virtio-snd: Always use little endian audio format") removed this method call, we don't need this header anymore.

---
 hw/audio/virtio-snd.c | 1 -
 1 file changed, 1 deletion(-)
hw/audio/virtio-snd.c +0 -1
index 69838181dd..c5581d7b3d 100644
@@ -20,7 +20,6 @@
 #include "qemu/log.h"
 #include "qemu/error-report.h"
 #include "qemu/lockable.h"
-#include "exec/tswap.h"
 #include "sysemu/runstate.h"
 #include "trace.h"
 #include "qapi/error.h"
Signature · 1 line
2.45.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 25 lines · Philippe Mathieu-Daudé

We were including the "exec/tswap.h" header to get target_words_bigendian() declaration, but since commit a276ec8e26 ("hw/audio/virtio-snd: Always use little endian audio format") removed this method call, we don't need this header anymore.

---
hw/audio/virtio-snd.c | 1 -

1 file changed, 1 deletion(-)
hw/audio/virtio-snd.c +0 -1
index 69838181dd..c5581d7b3d 100644
@@ -20,7 +20,6 @@
 #include "qemu/log.h"
 #include "qemu/error-report.h"
 #include "qemu/lockable.h"
-#include "exec/tswap.h"
 #include "sysemu/runstate.h"
 #include "trace.h"
 #include "qapi/error.h"
Signature · 1 line
2.45.2
Reviewed-by on v1 1/1
#2 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 9 lines · Philippe Mathieu-Daudé

We were including the "exec/tswap.h" header to get target_words_bigendian() declaration, but since commit a276ec8e26 ("hw/audio/virtio-snd: Always use little endian audio format") removed this method call, we don't need this header anymore.

---
  hw/audio/virtio-snd.c | 1 -
  1 file changed, 1 deletion(-)

r~