greybus: operation: add explicit padding to message header

Add explicit pad bytes to the message header.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Johan Hovold 2015-04-07 11:27:18 +02:00 committed by Greg Kroah-Hartman
parent 1e5613b4a6
commit da9dd11943

View File

@ -66,7 +66,7 @@ struct gb_operation_msg_hdr {
__le16 operation_id; /* Operation unique id */
__u8 type; /* E.g GB_I2C_TYPE_* or GB_GPIO_TYPE_* */
__u8 result; /* Result of request (in responses only) */
/* 2 bytes pad, must be zero (ignore when read) */
__u8 pad[2]; /* must be zero (ignore when read) */
} __aligned(sizeof(u64));
/*