[CRIU] [PATCH] Fix userfaultfd code with newer compilers
Adrian Reber
adrian at lisas.de
Thu Mar 17 07:13:49 PDT 2016
From: Adrian Reber <areber at redhat.com>
Signed-off-by: Adrian Reber <areber at redhat.com>
---
criu/pie/restorer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/criu/pie/restorer.c b/criu/pie/restorer.c
index aca2c2d..e3da9db 100644
--- a/criu/pie/restorer.c
+++ b/criu/pie/restorer.c
@@ -588,7 +588,7 @@ static int enable_uffd(int uffd, unsigned long addr, unsigned long len)
uffdio_register.mode = UFFDIO_REGISTER_MODE_MISSING;
pr_info("lazy-pages: uffdio_register.range.start 0x%lx\n", (unsigned long) uffdio_register.range.start);
pr_info("lazy-pages: uffdio_register.len 0x%llx\n", uffdio_register.range.len);
- rc = sys_ioctl(uffd, UFFDIO_REGISTER, &uffdio_register);
+ rc = sys_ioctl(uffd, UFFDIO_REGISTER, (unsigned long) &uffdio_register);
pr_info("lazy-pages: ioctl UFFDIO_REGISTER rc %d\n", rc);
pr_info("lazy-pages: uffdio_register.range.start 0x%lx\n", (unsigned long) uffdio_register.range.start);
pr_info("lazy-pages: uffdio_register.len 0x%llx\n", uffdio_register.range.len);
--
1.8.3.1
More information about the CRIU
mailing list