Commit cfc5f2c6 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman

greybus: uart: fix message packing

Add missing packed attributes to prevent implicit structure padding.
Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Reviewed-by: default avatarAlex Elder <elder@linaro.org>
Reviewed-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 2130f098
......@@ -678,7 +678,7 @@ struct gb_uart_recv_data_request {
__le16 size;
__u8 flags;
__u8 data[0];
};
} __packed;
struct gb_uart_set_line_coding_request {
__le32 rate;
......@@ -695,7 +695,7 @@ struct gb_uart_set_line_coding_request {
#define GB_SERIAL_SPACE_PARITY 4
__u8 data_bits;
};
} __packed;
/* output control lines */
#define GB_UART_CTRL_DTR 0x01
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment