[Devel] [PATCH] fix ckpt_mem build on ppc64

Nathan Lynch ntl at pobox.com
Thu Jan 15 11:34:40 PST 2009


On 64-bit powerpc:

checkpoint/ckpt_mem.c: In function 'cr_write_vma':
checkpoint/ckpt_mem.c:447: error: request for member 'pgprot' in something not a structure or union

pgprot_t is an abstract type; use the proper accessor.

Signed-off-by: Nathan Lynch <ntl at pobox.com>
---
 checkpoint/ckpt_mem.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

This is based on v12 of the C/R patches.

diff --git a/checkpoint/ckpt_mem.c b/checkpoint/ckpt_mem.c
index ccb14c7..4925ff2 100644
--- a/checkpoint/ckpt_mem.c
+++ b/checkpoint/ckpt_mem.c
@@ -444,7 +444,7 @@ static int cr_write_vma(struct cr_ctx *ctx, struct vm_area_struct *vma)
 
 	hh->vm_start = vma->vm_start;
 	hh->vm_end = vma->vm_end;
-	hh->vm_page_prot = vma->vm_page_prot.pgprot;
+	hh->vm_page_prot = pgprot_val(vma->vm_page_prot);
 	hh->vm_flags = vma->vm_flags;
 	hh->vm_pgoff = vma->vm_pgoff;
 
-- 
1.5.5

_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list