diff options
author | Gustavo F. Padovan <padovan@profusion.mobi> | 2010-07-21 06:59:57 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-21 17:44:29 -0400 |
commit | 942875ffc102a6b9992120808e4990eda7a618f6 (patch) | |
tree | df529424969f797e016fc6b34f22f5993be31673 /include/net/irda | |
parent | 2e4e7a97edcd58ce6e5be7cbb65fc4263f65e0bf (diff) |
irda: Use __packed annotation instead IRDA_PACKED macro
Remove IRDA_PACKED macro, which maps to __attribute__((packed)). IRDA is
one of the last users of __attribute__((packet)). Networking code uses
__packed now.
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/irda')
-rw-r--r-- | include/net/irda/irda.h | 4 | ||||
-rw-r--r-- | include/net/irda/irlap_frame.h | 18 |
2 files changed, 9 insertions, 13 deletions
diff --git a/include/net/irda/irda.h b/include/net/irda/irda.h index 7e582061b230..3bed61d379a8 100644 --- a/include/net/irda/irda.h +++ b/include/net/irda/irda.h | |||
@@ -53,10 +53,6 @@ typedef __u32 magic_t; | |||
53 | #ifndef IRDA_ALIGN | 53 | #ifndef IRDA_ALIGN |
54 | # define IRDA_ALIGN __attribute__((aligned)) | 54 | # define IRDA_ALIGN __attribute__((aligned)) |
55 | #endif | 55 | #endif |
56 | #ifndef IRDA_PACK | ||
57 | # define IRDA_PACK __attribute__((packed)) | ||
58 | #endif | ||
59 | |||
60 | 56 | ||
61 | #ifdef CONFIG_IRDA_DEBUG | 57 | #ifdef CONFIG_IRDA_DEBUG |
62 | 58 | ||
diff --git a/include/net/irda/irlap_frame.h b/include/net/irda/irlap_frame.h index 641f88e848bd..6b1dc4f8eca5 100644 --- a/include/net/irda/irlap_frame.h +++ b/include/net/irda/irlap_frame.h | |||
@@ -85,7 +85,7 @@ struct discovery_t; | |||
85 | struct disc_frame { | 85 | struct disc_frame { |
86 | __u8 caddr; /* Connection address */ | 86 | __u8 caddr; /* Connection address */ |
87 | __u8 control; | 87 | __u8 control; |
88 | } IRDA_PACK; | 88 | } __packed; |
89 | 89 | ||
90 | struct xid_frame { | 90 | struct xid_frame { |
91 | __u8 caddr; /* Connection address */ | 91 | __u8 caddr; /* Connection address */ |
@@ -96,41 +96,41 @@ struct xid_frame { | |||
96 | __u8 flags; /* Discovery flags */ | 96 | __u8 flags; /* Discovery flags */ |
97 | __u8 slotnr; | 97 | __u8 slotnr; |
98 | __u8 version; | 98 | __u8 version; |
99 | } IRDA_PACK; | 99 | } __packed; |
100 | 100 | ||
101 | struct test_frame { | 101 | struct test_frame { |
102 | __u8 caddr; /* Connection address */ | 102 | __u8 caddr; /* Connection address */ |
103 | __u8 control; | 103 | __u8 control; |
104 | __le32 saddr; /* Source device address */ | 104 | __le32 saddr; /* Source device address */ |
105 | __le32 daddr; /* Destination device address */ | 105 | __le32 daddr; /* Destination device address */ |
106 | } IRDA_PACK; | 106 | } __packed; |
107 | 107 | ||
108 | struct ua_frame { | 108 | struct ua_frame { |
109 | __u8 caddr; | 109 | __u8 caddr; |
110 | __u8 control; | 110 | __u8 control; |
111 | __le32 saddr; /* Source device address */ | 111 | __le32 saddr; /* Source device address */ |
112 | __le32 daddr; /* Dest device address */ | 112 | __le32 daddr; /* Dest device address */ |
113 | } IRDA_PACK; | 113 | } __packed; |
114 | 114 | ||
115 | struct dm_frame { | 115 | struct dm_frame { |
116 | __u8 caddr; /* Connection address */ | 116 | __u8 caddr; /* Connection address */ |
117 | __u8 control; | 117 | __u8 control; |
118 | } IRDA_PACK; | 118 | } __packed; |
119 | 119 | ||
120 | struct rd_frame { | 120 | struct rd_frame { |
121 | __u8 caddr; /* Connection address */ | 121 | __u8 caddr; /* Connection address */ |
122 | __u8 control; | 122 | __u8 control; |
123 | } IRDA_PACK; | 123 | } __packed; |
124 | 124 | ||
125 | struct rr_frame { | 125 | struct rr_frame { |
126 | __u8 caddr; /* Connection address */ | 126 | __u8 caddr; /* Connection address */ |
127 | __u8 control; | 127 | __u8 control; |
128 | } IRDA_PACK; | 128 | } __packed; |
129 | 129 | ||
130 | struct i_frame { | 130 | struct i_frame { |
131 | __u8 caddr; | 131 | __u8 caddr; |
132 | __u8 control; | 132 | __u8 control; |
133 | } IRDA_PACK; | 133 | } __packed; |
134 | 134 | ||
135 | struct snrm_frame { | 135 | struct snrm_frame { |
136 | __u8 caddr; | 136 | __u8 caddr; |
@@ -138,7 +138,7 @@ struct snrm_frame { | |||
138 | __le32 saddr; | 138 | __le32 saddr; |
139 | __le32 daddr; | 139 | __le32 daddr; |
140 | __u8 ncaddr; | 140 | __u8 ncaddr; |
141 | } IRDA_PACK; | 141 | } __packed; |
142 | 142 | ||
143 | void irlap_queue_xmit(struct irlap_cb *self, struct sk_buff *skb); | 143 | void irlap_queue_xmit(struct irlap_cb *self, struct sk_buff *skb); |
144 | void irlap_send_discovery_xid_frame(struct irlap_cb *, int S, __u8 s, | 144 | void irlap_send_discovery_xid_frame(struct irlap_cb *, int S, __u8 s, |