diff options
author | Vikash Chandola <vikash.chandola@intel.com> | 2022-03-25 15:14:02 +0300 |
---|---|---|
committer | Vikash Chandola <vikash.chandola@intel.com> | 2022-03-31 21:24:34 +0300 |
commit | e03b9f8ab820fecca0e18a5defcf5c89badedef2 (patch) | |
tree | 77ff663de2d1b4f3766b31881b081e065ca5a0f9 /include | |
parent | 45635dec0f51ed73e777e247118b9f349b914d9e (diff) | |
download | linux-e03b9f8ab820fecca0e18a5defcf5c89badedef2.tar.xz |
soc: aspeed: pack espi_oob_msg espi_comm_hdr
Initial bytes of espi_oob_msg espi_comm_hdr should follow the same
memory layout since both are used interchangeably. Pack both
structures to enforce same layout for both structures.
Signed-off-by: Vikash Chandola <vikash.chandola@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/uapi/linux/aspeed-espi-ioc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/uapi/linux/aspeed-espi-ioc.h b/include/uapi/linux/aspeed-espi-ioc.h index 616d3cd31e69..8e198158f6da 100644 --- a/include/uapi/linux/aspeed-espi-ioc.h +++ b/include/uapi/linux/aspeed-espi-ioc.h @@ -48,7 +48,7 @@ struct espi_comm_hdr { u8 len_h : 4; u8 tag : 4; u8 len_l; -}; +} __packed; struct espi_perif_mem32 { u8 cyc; @@ -92,7 +92,7 @@ struct espi_oob_msg { u8 tag : 4; u8 len_l; u8 data[]; -}; +} __packed; struct espi_flash_rwe { u8 cyc; |