Commit 36082937 authored by Adrian Reber's avatar Adrian Reber Committed by Andrei Vagin

criu: fix gcc9 rawhide compilation errors

Signed-off-by: 's avatarAdrian Reber <areber@redhat.com>
parent 8bb2f229
......@@ -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
......@@ -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 {
/*
......@@ -286,7 +288,7 @@ 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 {
......@@ -294,12 +296,12 @@ typedef struct {
/* 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.
......
......@@ -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;
......
......@@ -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)
{
......
......@@ -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;
}
}
......
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