diff options
| author | Anup Patel <[email protected]> | 2021-01-11 16:45:14 +0530 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2021-01-15 10:40:31 +0530 |
| commit | 386eba21bf349201f48e3e01ca129e6bffd7e674 (patch) | |
| tree | dae2d6d2c8d14288f705ca6b21391982617c2e72 /include | |
| parent | e884416650c46c69c41f83235407dc840cfc9c3f (diff) | |
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 <[email protected]>
Signed-off-by: Anup Patel <[email protected]>
Reviewed-by: Alistair Francis <[email protected]>
Reviewed-by: Atish Patra <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sbi/sbi_scratch.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sbi/sbi_scratch.h b/include/sbi/sbi_scratch.h index e7079f54..e35122be 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 { |
