From e884416650c46c69c41f83235407dc840cfc9c3f Mon Sep 17 00:00:00 2001 From: Anup Patel Date: Mon, 11 Jan 2021 16:25:38 +0530 Subject: [PATCH] include: sbi: No need to pack struct sbi_trap_regs All members in struct sbi_trap_regs are of machine word size so no need to pack this structure. This also allows GCC to generate more optimized instruction sequence when accessing members of struct sbi_trap_regs. Reported-by: Paul Campbell Signed-off-by: Anup Patel Reviewed-by: Alistair Francis Reviewed-by: Atish Patra --- include/sbi/sbi_trap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sbi/sbi_trap.h b/include/sbi/sbi_trap.h index 04001df7..5fb94f98 100644 --- a/include/sbi/sbi_trap.h +++ b/include/sbi/sbi_trap.h @@ -186,7 +186,7 @@ struct sbi_trap_regs { unsigned long mstatus; /** mstatusH register state (only for 32-bit) */ unsigned long mstatusH; -} __packed; +}; /** Representation of trap details */ struct sbi_trap_info {