[Qemu-devel] [PATCH] memory: delete struct AddressSpaceOps

Jay Zhou posted 1 patch 5 years, 10 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/1526384108-49348-1-git-send-email-jianjay.zhou@huawei.com
Test checkpatch passed
Test docker-mingw@fedora passed
Test docker-quick@centos7 passed
Test s390x passed
memory.c | 2 --
1 file changed, 2 deletions(-)
[Qemu-devel] [PATCH] memory: delete struct AddressSpaceOps
Posted by Jay Zhou 5 years, 10 months ago
Since struct AddressSpaceOps isn't used anywhere else,
so just delete it.

Signed-off-by: Jay Zhou <jianjay.zhou@huawei.com>
---
 memory.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/memory.c b/memory.c
index fc7f9b7..94b91f9 100644
--- a/memory.c
+++ b/memory.c
@@ -220,8 +220,6 @@ struct FlatRange {
     bool readonly;
 };
 
-typedef struct AddressSpaceOps AddressSpaceOps;
-
 #define FOR_EACH_FLAT_RANGE(var, view)          \
     for (var = (view)->ranges; var < (view)->ranges + (view)->nr; ++var)
 
-- 
1.8.3.1



Re: [Qemu-devel] [PATCH] memory: delete struct AddressSpaceOps
Posted by Paolo Bonzini 5 years, 10 months ago
On 15/05/2018 13:35, Jay Zhou wrote:
> Since struct AddressSpaceOps isn't used anywhere else,
> so just delete it.
> 
> Signed-off-by: Jay Zhou <jianjay.zhou@huawei.com>
> ---
>  memory.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/memory.c b/memory.c
> index fc7f9b7..94b91f9 100644
> --- a/memory.c
> +++ b/memory.c
> @@ -220,8 +220,6 @@ struct FlatRange {
>      bool readonly;
>  };
>  
> -typedef struct AddressSpaceOps AddressSpaceOps;
> -
>  #define FOR_EACH_FLAT_RANGE(var, view)          \
>      for (var = (view)->ranges; var < (view)->ranges + (view)->nr; ++var)
>  
> 

Queued, thanks.

Paolo