rfcomm endianness annotations
PATCH 1/2 rfcomm endianness annotations
Subject: [PATCH] rfcomm endianness annotations
Signed-off-by Al Viro <[email protected]>
--- include/net/bluetooth/rfcomm.h | 4 ++-- net/bluetooth/rfcomm/core.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
include/net/bluetooth/rfcomm.h +2 -2
@@ -124,7 +124,7 @@ struct rfcomm_pn {u8 flow_ctrl;u8 priority;u8 ack_timer; -u16 mtu; +__le16 mtu;u8 max_retrans;u8 credits; } __attribute__ ((packed));
@@ -136,7 +136,7 @@ struct rfcomm_rpn {u8 flow_ctrl;u8 xon_char;u8 xoff_char; -u16 param_mask; +__le16 param_mask; } __attribute__ ((packed));struct rfcomm_rls {
net/bluetooth/rfcomm/core.c +1 -1
@@ -1018,7 +1018,7 @@ static void rfcomm_make_uih(struct sk_buif (len >127 ) { hdr = (void *)skb_push (skb,4 ); -put_unaligned (htobs (__len16 (len)), (u16 *) &hdr->len); +put_unaligned (htobs (__len16 (len)), (__le16 *) &hdr->len); }else { hdr = (void *)skb_push (skb,3 ); hdr->len =__len8 (len);
Signature · 1 line
1.4.2.GIT