fix ckpt_mem build on ppc64
PATCH 1/1 fix ckpt_mem build on ppc64
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 <[email protected]>
--- checkpoint/ckpt_mem.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
This is based on v12 of the C/R patches.
checkpoint/ckpt_mem.c +1 -1
@@ -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;
Signature · 1 line
1.5.5