diff options
| author | Yong Ding <yongding@codeaurora.org> | 2017-11-29 17:31:05 +0800 |
|---|---|---|
| committer | Yong Ding <yongding@codeaurora.org> | 2017-11-30 11:20:12 +0800 |
| commit | ef8ff2ece9a112a3469d7fb242b73e9ea21843e4 (patch) | |
| tree | 397221d7ec515766056960aacdd5ef66f9d618be | |
| parent | 29a654b02228754e25f675f05015a19c6fc5d2e2 (diff) | |
soc: qcom: hab: add __packed for export_desc
The export_desc structure is shared among Hypervisor and
GVMs(Guest Virtual Machines). With the explicit __packed
declared, it can have exactly the same memory layout in
Hypervisor and GVMs.
Change-Id: Iccd25e617dd3152f808593dd54b0a20baad02541
Signed-off-by: Yong Ding <yongding@codeaurora.org>
| -rw-r--r-- | drivers/soc/qcom/hab/hab.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/qcom/hab/hab.h b/drivers/soc/qcom/hab/hab.h index 7880f2331a2f..7f7c1e1f7370 100644 --- a/drivers/soc/qcom/hab/hab.h +++ b/drivers/soc/qcom/hab/hab.h @@ -274,7 +274,7 @@ struct export_desc { void *kva; int payload_count; unsigned char payload[1]; -}; +} __packed; int hab_vchan_open(struct uhab_context *ctx, unsigned int mmid, int32_t *vcid, uint32_t flags); |
