diff options
author | Johan Hovold <johan@hovoldconsulting.com> | 2015-04-07 11:27:18 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-04-07 17:31:05 +0200 |
commit | da9dd11943d1409c9992fe058c67e1017426a1d9 (patch) | |
tree | 5941e71cc9c12bee7a8d24dc4f03767526a9731f /drivers/staging/greybus/operation.h | |
parent | 1e5613b4a673f0670b64fe24f1c987604403e8c1 (diff) | |
download | op-kernel-dev-da9dd11943d1409c9992fe058c67e1017426a1d9.zip op-kernel-dev-da9dd11943d1409c9992fe058c67e1017426a1d9.tar.gz |
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>
Diffstat (limited to 'drivers/staging/greybus/operation.h')
-rw-r--r-- | drivers/staging/greybus/operation.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/operation.h b/drivers/staging/greybus/operation.h index 647e0bf..38684f2 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)); /* |