Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41671
b: refs/heads/master
c: 448c31a
h: refs/heads/master
i:
  41669: 87c475a
  41667: 8bea0c7
  41663: dec3852
v: v3
  • Loading branch information
Al Viro authored and David S. Miller committed Dec 3, 2006
1 parent 9db4276 commit 44cd00b
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c68b907028d35b0ad5a98b5e5552f0ad56a9ba1d
refs/heads/master: 448c31aa34b5ee947d322e8747c4cf801fc4c104
16 changes: 8 additions & 8 deletions trunk/include/net/irda/irlap_frame.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ struct xid_frame {
__u8 caddr; /* Connection address */
__u8 control;
__u8 ident; /* Should always be XID_FORMAT */
__u32 saddr; /* Source device address */
__u32 daddr; /* Destination device address */
__le32 saddr; /* Source device address */
__le32 daddr; /* Destination device address */
__u8 flags; /* Discovery flags */
__u8 slotnr;
__u8 version;
Expand All @@ -101,15 +101,15 @@ struct xid_frame {
struct test_frame {
__u8 caddr; /* Connection address */
__u8 control;
__u32 saddr; /* Source device address */
__u32 daddr; /* Destination device address */
__le32 saddr; /* Source device address */
__le32 daddr; /* Destination device address */
} IRDA_PACK;

struct ua_frame {
__u8 caddr;
__u8 control;
__u32 saddr; /* Source device address */
__u32 daddr; /* Dest device address */
__le32 saddr; /* Source device address */
__le32 daddr; /* Dest device address */
} IRDA_PACK;

struct dm_frame {
Expand All @@ -135,8 +135,8 @@ struct i_frame {
struct snrm_frame {
__u8 caddr;
__u8 control;
__u32 saddr;
__u32 daddr;
__le32 saddr;
__le32 daddr;
__u8 ncaddr;
} IRDA_PACK;

Expand Down
8 changes: 4 additions & 4 deletions trunk/net/irda/iriap.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,12 +451,12 @@ static void iriap_getvaluebyclass_confirm(struct iriap_cb *self,
n = 2;

/* Get length, MSB first */
len = be16_to_cpu(get_unaligned((__u16 *)(fp+n))); n += 2;
len = be16_to_cpu(get_unaligned((__be16 *)(fp+n))); n += 2;

IRDA_DEBUG(4, "%s(), len=%d\n", __FUNCTION__, len);

/* Get object ID, MSB first */
obj_id = be16_to_cpu(get_unaligned((__u16 *)(fp+n))); n += 2;
obj_id = be16_to_cpu(get_unaligned((__be16 *)(fp+n))); n += 2;

type = fp[n++];
IRDA_DEBUG(4, "%s(), Value type = %d\n", __FUNCTION__, type);
Expand Down Expand Up @@ -506,7 +506,7 @@ static void iriap_getvaluebyclass_confirm(struct iriap_cb *self,
value = irias_new_string_value(fp+n);
break;
case IAS_OCT_SEQ:
value_len = be16_to_cpu(get_unaligned((__u16 *)(fp+n)));
value_len = be16_to_cpu(get_unaligned((__be16 *)(fp+n)));
n += 2;

/* Will truncate to IAS_MAX_OCTET_STRING bytes */
Expand Down Expand Up @@ -544,7 +544,7 @@ static void iriap_getvaluebyclass_response(struct iriap_cb *self,
{
struct sk_buff *tx_skb;
int n;
__u32 tmp_be32;
__be32 tmp_be32;
__be16 tmp_be16;
__u8 *fp;

Expand Down
2 changes: 1 addition & 1 deletion trunk/net/irda/irlan/irlan_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,7 @@ static int __irlan_insert_param(struct sk_buff *skb, char *param, int type,
{
__u8 *frame;
__u8 param_len;
__u16 tmp_le; /* Temporary value in little endian format */
__le16 tmp_le; /* Temporary value in little endian format */
int n=0;

if (skb == NULL) {
Expand Down
4 changes: 2 additions & 2 deletions trunk/net/irda/irttp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,7 @@ int irttp_connect_request(struct tsap_cb *self, __u8 dtsap_sel,
frame[3] = 0x02; /* Value length */

put_unaligned(cpu_to_be16((__u16) max_sdu_size),
(__u16 *)(frame+4));
(__be16 *)(frame+4));
} else {
/* Insert plain TTP header */
frame = skb_push(tx_skb, TTP_HEADER);
Expand Down Expand Up @@ -1394,7 +1394,7 @@ int irttp_connect_response(struct tsap_cb *self, __u32 max_sdu_size,
frame[3] = 0x02; /* Value length */

put_unaligned(cpu_to_be16((__u16) max_sdu_size),
(__u16 *)(frame+4));
(__be16 *)(frame+4));
} else {
/* Insert TTP header */
frame = skb_push(tx_skb, TTP_HEADER);
Expand Down

0 comments on commit 44cd00b

Please sign in to comment.