From 704073cd5566a8dc75bf91d6c5c52e241350db18 Mon Sep 17 00:00:00 2001 From: "Gustavo F. Padovan" Date: Wed, 21 Jul 2010 10:59:57 +0000 Subject: [PATCH] --- yaml --- r: 203662 b: refs/heads/master c: 942875ffc102a6b9992120808e4990eda7a618f6 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/net/irda/irda.h | 4 ---- trunk/include/net/irda/irlap_frame.h | 18 +++++++++--------- 3 files changed, 10 insertions(+), 14 deletions(-) diff --git a/[refs] b/[refs] index 4ed289836dee..4ed161ae4516 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 2e4e7a97edcd58ce6e5be7cbb65fc4263f65e0bf +refs/heads/master: 942875ffc102a6b9992120808e4990eda7a618f6 diff --git a/trunk/include/net/irda/irda.h b/trunk/include/net/irda/irda.h index 7e582061b230..3bed61d379a8 100644 --- a/trunk/include/net/irda/irda.h +++ b/trunk/include/net/irda/irda.h @@ -53,10 +53,6 @@ typedef __u32 magic_t; #ifndef IRDA_ALIGN # define IRDA_ALIGN __attribute__((aligned)) #endif -#ifndef IRDA_PACK -# define IRDA_PACK __attribute__((packed)) -#endif - #ifdef CONFIG_IRDA_DEBUG diff --git a/trunk/include/net/irda/irlap_frame.h b/trunk/include/net/irda/irlap_frame.h index 641f88e848bd..6b1dc4f8eca5 100644 --- a/trunk/include/net/irda/irlap_frame.h +++ b/trunk/include/net/irda/irlap_frame.h @@ -85,7 +85,7 @@ struct discovery_t; struct disc_frame { __u8 caddr; /* Connection address */ __u8 control; -} IRDA_PACK; +} __packed; struct xid_frame { __u8 caddr; /* Connection address */ @@ -96,41 +96,41 @@ struct xid_frame { __u8 flags; /* Discovery flags */ __u8 slotnr; __u8 version; -} IRDA_PACK; +} __packed; struct test_frame { __u8 caddr; /* Connection address */ __u8 control; __le32 saddr; /* Source device address */ __le32 daddr; /* Destination device address */ -} IRDA_PACK; +} __packed; struct ua_frame { __u8 caddr; __u8 control; __le32 saddr; /* Source device address */ __le32 daddr; /* Dest device address */ -} IRDA_PACK; +} __packed; struct dm_frame { __u8 caddr; /* Connection address */ __u8 control; -} IRDA_PACK; +} __packed; struct rd_frame { __u8 caddr; /* Connection address */ __u8 control; -} IRDA_PACK; +} __packed; struct rr_frame { __u8 caddr; /* Connection address */ __u8 control; -} IRDA_PACK; +} __packed; struct i_frame { __u8 caddr; __u8 control; -} IRDA_PACK; +} __packed; struct snrm_frame { __u8 caddr; @@ -138,7 +138,7 @@ struct snrm_frame { __le32 saddr; __le32 daddr; __u8 ncaddr; -} IRDA_PACK; +} __packed; void irlap_queue_xmit(struct irlap_cb *self, struct sk_buff *skb); void irlap_send_discovery_xid_frame(struct irlap_cb *, int S, __u8 s,