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

Cyrill Gorcunov gorcunov at openvz.org
Tue Oct 11 09:03:56 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 a5157466d0d7..0fd5972ae543 100644
--- a/criu/arch/aarch64/include/asm/types.h
+++ b/criu/arch/aarch64/include/asm/types.h
@@ -44,7 +44,7 @@ typedef struct user_fpsimd_state user_fpregs_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 88f79a5410a9..eeaef5925b81 100644
--- a/criu/arch/ppc64/include/asm/types.h
+++ b/criu/arch/ppc64/include/asm/types.h
@@ -98,7 +98,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