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>
This commit is contained in:
Yong Ding 2017-11-29 17:31:05 +08:00
parent 29a654b022
commit ef8ff2ece9

View file

@ -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);