Commit 6ba9c755 authored by Al Viro's avatar Al Viro Committed by David S. Miller

[BLUETOOTH]: rfcomm endianness annotations

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1bc5d448
...@@ -124,7 +124,7 @@ struct rfcomm_pn { ...@@ -124,7 +124,7 @@ struct rfcomm_pn {
u8 flow_ctrl; u8 flow_ctrl;
u8 priority; u8 priority;
u8 ack_timer; u8 ack_timer;
u16 mtu; __le16 mtu;
u8 max_retrans; u8 max_retrans;
u8 credits; u8 credits;
} __attribute__ ((packed)); } __attribute__ ((packed));
...@@ -136,7 +136,7 @@ struct rfcomm_rpn { ...@@ -136,7 +136,7 @@ struct rfcomm_rpn {
u8 flow_ctrl; u8 flow_ctrl;
u8 xon_char; u8 xon_char;
u8 xoff_char; u8 xoff_char;
u16 param_mask; __le16 param_mask;
} __attribute__ ((packed)); } __attribute__ ((packed));
struct rfcomm_rls { struct rfcomm_rls {
......
...@@ -1018,7 +1018,7 @@ static void rfcomm_make_uih(struct sk_buff *skb, u8 addr) ...@@ -1018,7 +1018,7 @@ static void rfcomm_make_uih(struct sk_buff *skb, u8 addr)
if (len > 127) { if (len > 127) {
hdr = (void *) skb_push(skb, 4); hdr = (void *) skb_push(skb, 4);
put_unaligned(htobs(__len16(len)), (u16 *) &hdr->len); put_unaligned(htobs(__len16(len)), (__le16 *) &hdr->len);
} else { } else {
hdr = (void *) skb_push(skb, 3); hdr = (void *) skb_push(skb, 3);
hdr->len = __len8(len); hdr->len = __len8(len);
......
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