[CRIU] [PATCH 6/6] criu: arch -- Fix more task_size prototype

Cyrill Gorcunov gorcunov at openvz.org
Wed Sep 28 14:34:49 PDT 2016


Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 criu/arch/aarch64/include/asm/types.h | 2 +-
 criu/arch/ppc64/include/asm/types.h   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/criu/arch/aarch64/include/asm/types.h b/criu/arch/aarch64/include/asm/types.h
index dfd289820950..c345feb4868a 100644
--- a/criu/arch/aarch64/include/asm/types.h
+++ b/criu/arch/aarch64/include/asm/types.h
@@ -43,7 +43,7 @@ typedef struct user_pt_regs user_regs_struct_t;
 
 int munmap(void *addr, size_t length);
 
-static inline unsigned long task_size() {
+static inline unsigned long task_size(void) {
 	unsigned long task_size;
 
 	for (task_size = TASK_SIZE_MIN; task_size < TASK_SIZE_MAX; task_size <<= 1)
diff --git a/criu/arch/ppc64/include/asm/types.h b/criu/arch/ppc64/include/asm/types.h
index c583d68c4ad8..dfadf5b943dd 100644
--- a/criu/arch/ppc64/include/asm/types.h
+++ b/criu/arch/ppc64/include/asm/types.h
@@ -71,7 +71,7 @@ typedef uint64_t tls_t;
 #define TASK_SIZE_USER64 (0x0000400000000000UL)
 #define TASK_SIZE TASK_SIZE_USER64
 
-static inline unsigned long task_size() { return TASK_SIZE; }
+static inline unsigned long task_size(void) { return TASK_SIZE; }
 
 static inline void *decode_pointer(uint64_t v) { return (void*)v; }
 static inline uint64_t encode_pointer(void *p) { return (uint64_t)p; }
-- 
2.7.4



More information about the CRIU mailing list