greybus: sdio: fix message packing
authorJohan Hovold <johan@hovoldconsulting.com>
Sat, 1 Aug 2015 09:50:40 +0000 (11:50 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 4 Aug 2015 03:00:41 +0000 (20:00 -0700)
Add missing packed attributes to prevent implicit structure padding.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/greybus_protocols.h

index cdd5b54874bdbbed7ba8cfaf205c6c724d2c5d01..e49376d283f0170bb1fa8f1a700980fc7897a352 100644 (file)
@@ -845,7 +845,7 @@ struct gb_sdio_set_ios_request {
 #define GB_SDIO_SET_DRIVER_TYPE_A      0x01
 #define GB_SDIO_SET_DRIVER_TYPE_C      0x02
 #define GB_SDIO_SET_DRIVER_TYPE_D      0x03
-};
+} __packed;
 
 /* command request */
 struct gb_sdio_command_request {
@@ -865,7 +865,7 @@ struct gb_sdio_command_request {
 #define GB_SDIO_CMD_BC         0x03
 
        __le32  cmd_arg;
-};
+} __packed;
 
 struct gb_sdio_command_response {
        __le32  resp[4];
@@ -881,7 +881,7 @@ struct gb_sdio_transfer_request {
        __le16  data_blocks;
        __le16  data_blksz;
        __u8    data[0];
-};
+} __packed;
 
 struct gb_sdio_transfer_response {
        __le16  data_blocks;