From da9dd11943d1409c9992fe058c67e1017426a1d9 Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Tue, 7 Apr 2015 11:27:18 +0200 Subject: [PATCH] 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 --- drivers/staging/greybus/operation.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); /* -- 2.11.0