[07/16] mem/vma: Drop never used VM_AREA_LIST macro

Submitted by Cyrill Gorcunov on July 5, 2019, 3:38 p.m.

Details

Message ID 20190705153811.22652-8-gorcunov@gmail.com
State Accepted
Series "mem: Cleanup and fixups"
Headers show

Commit Message

Cyrill Gorcunov July 5, 2019, 3:38 p.m.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
---
 criu/include/vma.h | 2 --
 1 file changed, 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/criu/include/vma.h b/criu/include/vma.h
index 6f5ee19d3888..3cdd1b319561 100644
--- a/criu/include/vma.h
+++ b/criu/include/vma.h
@@ -18,8 +18,6 @@  struct vm_area_list {
 	unsigned long		shared_longest; /* nr of pages in longest shared VMA */
 };
 
-#define VM_AREA_LIST(name)	struct vm_area_list name = { .h = LIST_HEAD_INIT(name.h), .nr = 0, }
-
 static inline void vm_area_list_init(struct vm_area_list *vml)
 {
 	memset(vml, 0, sizeof(*vml));

Comments

Mike Rapoport July 8, 2019, 12:38 p.m.
On Fri, Jul 05, 2019 at 06:38:02PM +0300, Cyrill Gorcunov wrote:
> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>

Reviewed-by: Mike Rapoport <rppt@linux.ibm.com>

> ---
>  criu/include/vma.h | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/criu/include/vma.h b/criu/include/vma.h
> index 6f5ee19d3888..3cdd1b319561 100644
> --- a/criu/include/vma.h
> +++ b/criu/include/vma.h
> @@ -18,8 +18,6 @@ struct vm_area_list {
>  	unsigned long		shared_longest; /* nr of pages in longest shared VMA */
>  };
>  
> -#define VM_AREA_LIST(name)	struct vm_area_list name = { .h = LIST_HEAD_INIT(name.h), .nr = 0, }
> -
>  static inline void vm_area_list_init(struct vm_area_list *vml)
>  {
>  	memset(vml, 0, sizeof(*vml));
> -- 
> 2.20.1
> 
> _______________________________________________
> CRIU mailing list
> CRIU@openvz.org
> https://lists.openvz.org/mailman/listinfo/criu
>