mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-19 01:26:22 +00:00
criu: arch -- Fix more task_size prototype
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
parent
8e85aed88e
commit
524aeefdd0
2 changed files with 2 additions and 2 deletions
|
|
@ -64,7 +64,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)
|
||||
|
|
|
|||
|
|
@ -121,7 +121,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; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue