Signed-off-by: Eduardo Habkost <ehabk...@redhat.com>
---
 exec.c                  | 1 -
 hw/virtio/virtio.c      | 1 -
 include/exec/exec-all.h | 2 ++
 3 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/exec.c b/exec.c
index 71ac104..6666ed5 100644
--- a/exec.c
+++ b/exec.c
@@ -2845,7 +2845,6 @@ int cpu_memory_rw_debug(CPUState *cpu, target_ulong addr,
  * A helper function for the _utterly broken_ virtio device model to find out 
if
  * it's running on a big endian machine. Don't do this at home kids!
  */
-bool target_words_bigendian(void);
 bool target_words_bigendian(void)
 {
 #if defined(TARGET_WORDS_BIGENDIAN)
diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c
index 013979a..9df248d 100644
--- a/hw/virtio/virtio.c
+++ b/hw/virtio/virtio.c
@@ -552,7 +552,6 @@ void virtio_set_status(VirtIODevice *vdev, uint8_t val)
     vdev->status = val;
 }
 
-bool target_words_bigendian(void);
 static enum virtio_device_endian virtio_default_endian(void)
 {
     if (target_words_bigendian()) {
diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h
index 0844885..d8ca313 100644
--- a/include/exec/exec-all.h
+++ b/include/exec/exec-all.h
@@ -383,4 +383,6 @@ static inline bool cpu_can_do_io(CPUState *cpu)
     return cpu->can_do_io != 0;
 }
 
+bool target_words_bigendian(void);
+
 #endif
-- 
1.9.3


Reply via email to