Commit 524aeefd authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

criu: arch -- Fix more task_size prototype

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 8e85aed8
...@@ -64,7 +64,7 @@ typedef struct user_fpsimd_state user_fpregs_struct_t; ...@@ -64,7 +64,7 @@ typedef struct user_fpsimd_state user_fpregs_struct_t;
int munmap(void *addr, size_t length); int munmap(void *addr, size_t length);
static inline unsigned long task_size() { static inline unsigned long task_size(void) {
unsigned long task_size; unsigned long task_size;
for (task_size = TASK_SIZE_MIN; task_size < TASK_SIZE_MAX; task_size <<= 1) for (task_size = TASK_SIZE_MIN; task_size < TASK_SIZE_MAX; task_size <<= 1)
......
...@@ -121,7 +121,7 @@ typedef uint64_t tls_t; ...@@ -121,7 +121,7 @@ typedef uint64_t tls_t;
#define TASK_SIZE_USER64 (0x0000400000000000UL) #define TASK_SIZE_USER64 (0x0000400000000000UL)
#define TASK_SIZE TASK_SIZE_USER64 #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 void *decode_pointer(uint64_t v) { return (void*)v; }
static inline uint64_t encode_pointer(void *p) { return (uint64_t)p; } static inline uint64_t encode_pointer(void *p) { return (uint64_t)p; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment