From: Johan Hovold Date: Tue, 7 Apr 2015 09:27:18 +0000 (+0200) Subject: greybus: operation: add explicit padding to message header X-Git-Tag: v4.9-rc1~119^2~378^2~21^2~1596 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=da9dd11943d1409c9992fe058c67e1017426a1d9;p=karo-tx-linux.git greybus: operation: add explicit padding to message header Add explicit pad bytes to the message header. Signed-off-by: Johan Hovold Reviewed-by: Alex Elder Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/operation.h b/drivers/staging/greybus/operation.h index 647e0bfc54ee..38684f2cdbaa 100644 --- a/drivers/staging/greybus/operation.h +++ b/drivers/staging/greybus/operation.h @@ -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)); /*