Navigation Menu

Skip to content

Commit

Permalink
criu: fix gcc9 rawhide compilation errors
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Reber <areber@redhat.com>
  • Loading branch information
adrianreber authored and avagin committed Mar 14, 2019
1 parent 0ad8471 commit 70e0676
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
12 changes: 7 additions & 5 deletions compel/arch/x86/src/lib/include/uapi/asm/fpu.h
Expand Up @@ -12,7 +12,9 @@

#define FP_XSTATE_MAGIC1 0x46505853U
#define FP_XSTATE_MAGIC2 0x46505845U
#ifndef FP_XSTATE_MAGIC2_SIZE
#define FP_XSTATE_MAGIC2_SIZE sizeof(FP_XSTATE_MAGIC2)
#endif

#define XSTATE_FP 0x1
#define XSTATE_SSE 0x2
Expand Down Expand Up @@ -261,7 +263,7 @@ struct xsave_struct_ia32 {
struct ymmh_struct ymmh;
uint8_t extended_state_area[EXTENDED_STATE_AREA_SIZE];
};
} __aligned(FXSAVE_ALIGN_BYTES) __packed;
} __aligned(FXSAVE_ALIGN_BYTES);

typedef struct {
/*
Expand All @@ -286,20 +288,20 @@ struct user_i387_ia32_struct {
uint32_t foo; /* FPU Operand Pointer Offset */
uint32_t fos; /* FPU Operand Pointer Selector */
uint32_t st_space[20]; /* 8*10 bytes for each FP-reg = 80 bytes */
} __packed;
};

typedef struct {
struct {
struct user_i387_ia32_struct i387_ia32;

/* Software status information [not touched by FSAVE]: */
uint32_t status;
} __packed fregs_state;
} fregs_state;
union {
struct xsave_struct_ia32 xsave;
uint8_t __pad[sizeof(struct xsave_struct) + FP_XSTATE_MAGIC2_SIZE];
} __aligned(FXSAVE_ALIGN_BYTES) __packed;
} __aligned(FXSAVE_ALIGN_BYTES) __packed fpu_state_ia32_t;
} __aligned(FXSAVE_ALIGN_BYTES);
} __aligned(FXSAVE_ALIGN_BYTES) fpu_state_ia32_t;

/*
* This one is used in restorer.
Expand Down
2 changes: 1 addition & 1 deletion compel/arch/x86/src/lib/include/uapi/asm/sigframe.h
Expand Up @@ -95,7 +95,7 @@ struct ucontext_ia32 {
compat_stack_t uc_stack;
struct rt_sigcontext_32 uc_mcontext;
k_rtsigset_t uc_sigmask; /* mask last for extensibility */
} __packed;
};

struct rt_sigframe_ia32 {
uint32_t pretcode;
Expand Down
2 changes: 1 addition & 1 deletion criu/arch/x86/include/asm/restore.h
Expand Up @@ -17,7 +17,7 @@
: "g"(new_sp), \
"g"(restore_task_exec_start), \
"g"(task_args) \
: "rsp", "rdi", "rsi", "rbx", "rax", "memory")
: "rdi", "rsi", "rbx", "rax", "memory")

static inline void core_get_tls(CoreEntry *pcore, tls_t *ptls)
{
Expand Down
4 changes: 2 additions & 2 deletions criu/sk-unix.c
Expand Up @@ -437,8 +437,8 @@ static int dump_one_unix_fd(int lfd, uint32_t id, const struct fd_parms *p)
*/
if (peer->peer_ino != ue->ino) {
if (!peer->name) {
pr_err("Unix socket %d with unreachable peer %d (%d/%s)\n",
ue->ino, ue->peer, peer->peer_ino, peer->name);
pr_err("Unix socket %d with unreachable peer %d (%d)\n",
ue->ino, ue->peer, peer->peer_ino);
goto err;
}
}
Expand Down

0 comments on commit 70e0676

Please sign in to comment.