[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 11/11] vhost-vdpa: Remove redundant declaration of address_space_m
From: |
Laurent Vivier |
Subject: |
[PULL 11/11] vhost-vdpa: Remove redundant declaration of address_space_memory |
Date: |
Mon, 7 Jun 2021 20:57:30 +0200 |
From: Xie Yongji <xieyongji@bytedance.com>
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 <xieyongji@bytedance.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Message-Id: <20210517123246.999-1-xieyongji@bytedance.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
hw/virtio/vhost-vdpa.c | 1 +
include/hw/virtio/vhost-vdpa.h | 1 -
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/virtio/vhost-vdpa.c b/hw/virtio/vhost-vdpa.c
index 8f2fb9f10b2a..ee51863d280b 100644
--- a/hw/virtio/vhost-vdpa.c
+++ b/hw/virtio/vhost-vdpa.c
@@ -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"
diff --git a/include/hw/virtio/vhost-vdpa.h b/include/hw/virtio/vhost-vdpa.h
index 28ca65018ed7..ae9ee7adb2d0 100644
--- a/include/hw/virtio/vhost-vdpa.h
+++ b/include/hw/virtio/vhost-vdpa.h
@@ -21,5 +21,4 @@ typedef struct vhost_vdpa {
struct vhost_dev *dev;
} VhostVDPA;
-extern AddressSpace address_space_memory;
#endif
--
2.31.1
- [PULL 00/11] Trivial branch for 6.1 patches, Laurent Vivier, 2021/06/07
- [PULL 02/11] i386/kvm: The value passed to strerror should be positive, Laurent Vivier, 2021/06/07
- [PULL 06/11] target/nios2: fix page-fit instruction count, Laurent Vivier, 2021/06/07
- [PULL 05/11] docs: fix broken reference, Laurent Vivier, 2021/06/07
- [PULL 11/11] vhost-vdpa: Remove redundant declaration of address_space_memory,
Laurent Vivier <=
- [PULL 04/11] linux-user/syscall: Constify bitmask_transtbl fcntl/mmap flags_tlb[], Laurent Vivier, 2021/06/07
- [PULL 07/11] hw/display/macfb: Classify the "nubus-macfb" as display device, Laurent Vivier, 2021/06/07
- [PULL 09/11] target/mips: Fix 'Uncoditional' typo, Laurent Vivier, 2021/06/07
- [PULL 03/11] misc: Correct relative include path, Laurent Vivier, 2021/06/07
- [PULL 10/11] scripts/oss-fuzz: Fix typo in documentation, Laurent Vivier, 2021/06/07
- [PULL 01/11] target/riscv: Do not include 'pmp.h' in user emulation, Laurent Vivier, 2021/06/07
- [PULL 08/11] target/hppa: Remove unused 'memory.h' header, Laurent Vivier, 2021/06/07
- Re: [PULL 00/11] Trivial branch for 6.1 patches, Peter Maydell, 2021/06/08