mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
greybus: uart: fix message packing
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>
This commit is contained in:
parent
2130f09871
commit
cfc5f2c6de
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue