summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2021-01-11 14:15:14 +0300
committerAnup Patel <anup@brainfault.org>2021-01-15 08:10:31 +0300
commit386eba21bf349201f48e3e01ca129e6bffd7e674 (patch)
treedae2d6d2c8d14288f705ca6b21391982617c2e72
parente884416650c46c69c41f83235407dc840cfc9c3f (diff)
downloadopensbi-386eba21bf349201f48e3e01ca129e6bffd7e674.tar.xz
include: sbi: No need to pack struct sbi_scratch
All members in struct sbi_scrach 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_scratch. Reported-by: Paul Campbell <taniwha@gmail.com> Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Atish Patra <atish.patra@wdc.com>
-rw-r--r--include/sbi/sbi_scratch.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sbi/sbi_scratch.h b/include/sbi/sbi_scratch.h
index e7079f5..e35122b 100644
--- a/include/sbi/sbi_scratch.h
+++ b/include/sbi/sbi_scratch.h
@@ -71,7 +71,7 @@ struct sbi_scratch {
unsigned long tmp0;
/** Options for OpenSBI library */
unsigned long options;
-} __packed;
+};
/** Possible options for OpenSBI library */
enum sbi_scratch_options {