]> Git Repo - qemu.git/commitdiff
vhost-vdpa: Remove redundant declaration of address_space_memory
authorXie Yongji <[email protected]>
Mon, 17 May 2021 12:32:46 +0000 (20:32 +0800)
committerLaurent Vivier <[email protected]>
Sat, 5 Jun 2021 19:33:46 +0000 (21:33 +0200)
The symbol address_space_memory are already declared in
include/exec/address-spaces.h. So let's add this header file
and remove the redundant declaration in include/hw/virtio/vhost-vdpa.h.

Signed-off-by: Xie Yongji <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Stefano Garzarella <[email protected]>
Message-Id: <20210517123246[email protected]>
Signed-off-by: Laurent Vivier <[email protected]>
hw/virtio/vhost-vdpa.c
include/hw/virtio/vhost-vdpa.h

index 8f2fb9f10b2a0dc333ee73f2df51e4a9b68fea14..ee51863d280b95a5f9d2c691e87400b728e62121 100644 (file)
@@ -18,6 +18,7 @@
 #include "hw/virtio/vhost-backend.h"
 #include "hw/virtio/virtio-net.h"
 #include "hw/virtio/vhost-vdpa.h"
+#include "exec/address-spaces.h"
 #include "qemu/main-loop.h"
 #include "cpu.h"
 #include "trace.h"
index 28ca65018ed70e770e8dee1ec15c9c0016757991..ae9ee7adb2d0887884372a1a93a062ac22d7e338 100644 (file)
@@ -21,5 +21,4 @@ typedef struct vhost_vdpa {
     struct vhost_dev *dev;
 } VhostVDPA;
 
-extern AddressSpace address_space_memory;
 #endif
This page took 0.035203 seconds and 4 git commands to generate.