]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
greybus: operation: add explicit padding to message header
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 7 Apr 2015 09:27:18 +0000 (11:27 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 7 Apr 2015 15:31:05 +0000 (17:31 +0200)
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>
drivers/staging/greybus/operation.h

index 647e0bfc54ee5c350882c1014a1ae6d23e8320d7..38684f2cdbaa325423bf24a23addb5a5d50c0e4e 100644 (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));
 
 /*