From ef8ff2ece9a112a3469d7fb242b73e9ea21843e4 Mon Sep 17 00:00:00 2001 From: Yong Ding Date: Wed, 29 Nov 2017 17:31:05 +0800 Subject: [PATCH] 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 --- drivers/soc/qcom/hab/hab.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);