include: sbi: Don't pack struct sbi_platform and sbi_platform_operations
authorAnup Patel <anup.patel@wdc.com>
Mon, 11 Jan 2021 11:45:00 +0000 (17:15 +0530)
committerAnup Patel <anup@brainfault.org>
Fri, 15 Jan 2021 05:10:33 +0000 (10:40 +0530)
commit1bbf36183ef5beeeb6358ff4450611c9c76a2ea2
tree7c8bd2cae7ad7e475bb061cd279cc21c57d9ca24
parent386eba21bf349201f48e3e01ca129e6bffd7e674
include: sbi: Don't pack struct sbi_platform and sbi_platform_operations

We don't need to pack struct sbi_platform and sbi_platform_operations
because GCC ensures member offsets match member data type irrespective
to the target system (RV32 or RV64). This also allows GCC to generate
more optimized instruction sequence when accessing members of struct
sbi_platform and struct sbi_platform_operations.

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>
include/sbi/sbi_platform.h