diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-06-02 14:10:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-03 06:18:23 -0400 |
commit | ba2d3587912f82d1ab4367975b1df460db60fb1e (patch) | |
tree | 1e4e04caf23274bb4e39edbfc5713b4856326953 /drivers/net/wireless/b43 | |
parent | 1273d97674a1782ff55b823aa6c40aea9b538aaf (diff) |
drivers/net: use __packed annotation
cleanup patch.
Use new __packed annotation in drivers/net/
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/b43')
-rw-r--r-- | drivers/net/wireless/b43/b43.h | 6 | ||||
-rw-r--r-- | drivers/net/wireless/b43/dma.h | 8 | ||||
-rw-r--r-- | drivers/net/wireless/b43/xmit.h | 20 |
3 files changed, 17 insertions, 17 deletions
diff --git a/drivers/net/wireless/b43/b43.h b/drivers/net/wireless/b43/b43.h index 3a003e6803a5..8674a99356af 100644 --- a/drivers/net/wireless/b43/b43.h +++ b/drivers/net/wireless/b43/b43.h | |||
@@ -530,7 +530,7 @@ struct b43_fw_header { | |||
530 | /* Size of the data. For ucode and PCM this is in bytes. | 530 | /* Size of the data. For ucode and PCM this is in bytes. |
531 | * For IV this is number-of-ivs. */ | 531 | * For IV this is number-of-ivs. */ |
532 | __be32 size; | 532 | __be32 size; |
533 | } __attribute__((__packed__)); | 533 | } __packed; |
534 | 534 | ||
535 | /* Initial Value file format */ | 535 | /* Initial Value file format */ |
536 | #define B43_IV_OFFSET_MASK 0x7FFF | 536 | #define B43_IV_OFFSET_MASK 0x7FFF |
@@ -540,8 +540,8 @@ struct b43_iv { | |||
540 | union { | 540 | union { |
541 | __be16 d16; | 541 | __be16 d16; |
542 | __be32 d32; | 542 | __be32 d32; |
543 | } data __attribute__((__packed__)); | 543 | } data __packed; |
544 | } __attribute__((__packed__)); | 544 | } __packed; |
545 | 545 | ||
546 | 546 | ||
547 | /* Data structures for DMA transmission, per 80211 core. */ | 547 | /* Data structures for DMA transmission, per 80211 core. */ |
diff --git a/drivers/net/wireless/b43/dma.h b/drivers/net/wireless/b43/dma.h index dc91944d6022..a01c2100f166 100644 --- a/drivers/net/wireless/b43/dma.h +++ b/drivers/net/wireless/b43/dma.h | |||
@@ -67,7 +67,7 @@ | |||
67 | struct b43_dmadesc32 { | 67 | struct b43_dmadesc32 { |
68 | __le32 control; | 68 | __le32 control; |
69 | __le32 address; | 69 | __le32 address; |
70 | } __attribute__ ((__packed__)); | 70 | } __packed; |
71 | #define B43_DMA32_DCTL_BYTECNT 0x00001FFF | 71 | #define B43_DMA32_DCTL_BYTECNT 0x00001FFF |
72 | #define B43_DMA32_DCTL_ADDREXT_MASK 0x00030000 | 72 | #define B43_DMA32_DCTL_ADDREXT_MASK 0x00030000 |
73 | #define B43_DMA32_DCTL_ADDREXT_SHIFT 16 | 73 | #define B43_DMA32_DCTL_ADDREXT_SHIFT 16 |
@@ -140,7 +140,7 @@ struct b43_dmadesc64 { | |||
140 | __le32 control1; | 140 | __le32 control1; |
141 | __le32 address_low; | 141 | __le32 address_low; |
142 | __le32 address_high; | 142 | __le32 address_high; |
143 | } __attribute__ ((__packed__)); | 143 | } __packed; |
144 | #define B43_DMA64_DCTL0_DTABLEEND 0x10000000 | 144 | #define B43_DMA64_DCTL0_DTABLEEND 0x10000000 |
145 | #define B43_DMA64_DCTL0_IRQ 0x20000000 | 145 | #define B43_DMA64_DCTL0_IRQ 0x20000000 |
146 | #define B43_DMA64_DCTL0_FRAMEEND 0x40000000 | 146 | #define B43_DMA64_DCTL0_FRAMEEND 0x40000000 |
@@ -153,8 +153,8 @@ struct b43_dmadesc_generic { | |||
153 | union { | 153 | union { |
154 | struct b43_dmadesc32 dma32; | 154 | struct b43_dmadesc32 dma32; |
155 | struct b43_dmadesc64 dma64; | 155 | struct b43_dmadesc64 dma64; |
156 | } __attribute__ ((__packed__)); | 156 | } __packed; |
157 | } __attribute__ ((__packed__)); | 157 | } __packed; |
158 | 158 | ||
159 | /* Misc DMA constants */ | 159 | /* Misc DMA constants */ |
160 | #define B43_DMA_RINGMEMSIZE PAGE_SIZE | 160 | #define B43_DMA_RINGMEMSIZE PAGE_SIZE |
diff --git a/drivers/net/wireless/b43/xmit.h b/drivers/net/wireless/b43/xmit.h index d23ff9fe0c9e..d4cf9b390af3 100644 --- a/drivers/net/wireless/b43/xmit.h +++ b/drivers/net/wireless/b43/xmit.h | |||
@@ -10,8 +10,8 @@ | |||
10 | union { \ | 10 | union { \ |
11 | __le32 data; \ | 11 | __le32 data; \ |
12 | __u8 raw[size]; \ | 12 | __u8 raw[size]; \ |
13 | } __attribute__((__packed__)); \ | 13 | } __packed; \ |
14 | } __attribute__((__packed__)) | 14 | } __packed |
15 | 15 | ||
16 | /* struct b43_plcp_hdr4 */ | 16 | /* struct b43_plcp_hdr4 */ |
17 | _b43_declare_plcp_hdr(4); | 17 | _b43_declare_plcp_hdr(4); |
@@ -57,7 +57,7 @@ struct b43_txhdr { | |||
57 | __u8 rts_frame[16]; /* The RTS frame (if used) */ | 57 | __u8 rts_frame[16]; /* The RTS frame (if used) */ |
58 | PAD_BYTES(2); | 58 | PAD_BYTES(2); |
59 | struct b43_plcp_hdr6 plcp; /* Main PLCP header */ | 59 | struct b43_plcp_hdr6 plcp; /* Main PLCP header */ |
60 | } new_format __attribute__ ((__packed__)); | 60 | } new_format __packed; |
61 | 61 | ||
62 | /* The old r351 format. */ | 62 | /* The old r351 format. */ |
63 | struct { | 63 | struct { |
@@ -68,10 +68,10 @@ struct b43_txhdr { | |||
68 | __u8 rts_frame[16]; /* The RTS frame (if used) */ | 68 | __u8 rts_frame[16]; /* The RTS frame (if used) */ |
69 | PAD_BYTES(2); | 69 | PAD_BYTES(2); |
70 | struct b43_plcp_hdr6 plcp; /* Main PLCP header */ | 70 | struct b43_plcp_hdr6 plcp; /* Main PLCP header */ |
71 | } old_format __attribute__ ((__packed__)); | 71 | } old_format __packed; |
72 | 72 | ||
73 | } __attribute__ ((__packed__)); | 73 | } __packed; |
74 | } __attribute__ ((__packed__)); | 74 | } __packed; |
75 | 75 | ||
76 | /* MAC TX control */ | 76 | /* MAC TX control */ |
77 | #define B43_TXH_MAC_USEFBR 0x10000000 /* Use fallback rate for this AMPDU */ | 77 | #define B43_TXH_MAC_USEFBR 0x10000000 /* Use fallback rate for this AMPDU */ |
@@ -218,20 +218,20 @@ struct b43_rxhdr_fw4 { | |||
218 | struct { | 218 | struct { |
219 | __u8 jssi; /* PHY RX Status 1: JSSI */ | 219 | __u8 jssi; /* PHY RX Status 1: JSSI */ |
220 | __u8 sig_qual; /* PHY RX Status 1: Signal Quality */ | 220 | __u8 sig_qual; /* PHY RX Status 1: Signal Quality */ |
221 | } __attribute__ ((__packed__)); | 221 | } __packed; |
222 | 222 | ||
223 | /* RSSI for N-PHYs */ | 223 | /* RSSI for N-PHYs */ |
224 | struct { | 224 | struct { |
225 | __s8 power0; /* PHY RX Status 1: Power 0 */ | 225 | __s8 power0; /* PHY RX Status 1: Power 0 */ |
226 | __s8 power1; /* PHY RX Status 1: Power 1 */ | 226 | __s8 power1; /* PHY RX Status 1: Power 1 */ |
227 | } __attribute__ ((__packed__)); | 227 | } __packed; |
228 | } __attribute__ ((__packed__)); | 228 | } __packed; |
229 | __le16 phy_status2; /* PHY RX Status 2 */ | 229 | __le16 phy_status2; /* PHY RX Status 2 */ |
230 | __le16 phy_status3; /* PHY RX Status 3 */ | 230 | __le16 phy_status3; /* PHY RX Status 3 */ |
231 | __le32 mac_status; /* MAC RX status */ | 231 | __le32 mac_status; /* MAC RX status */ |
232 | __le16 mac_time; | 232 | __le16 mac_time; |
233 | __le16 channel; | 233 | __le16 channel; |
234 | } __attribute__ ((__packed__)); | 234 | } __packed; |
235 | 235 | ||
236 | /* PHY RX Status 0 */ | 236 | /* PHY RX Status 0 */ |
237 | #define B43_RX_PHYST0_GAINCTL 0x4000 /* Gain Control */ | 237 | #define B43_RX_PHYST0_GAINCTL 0x4000 /* Gain Control */ |