···436436 __le16 buf_len; /* Size of the receive buffer in host memory */437437 u16 coalese; /* Update consumer index to host after the438438 * reception of this frame */439439- /* __attribute__ ((packed)) is required */440440-} __attribute__ ((packed));439439+ /* __packed is required */440440+} __packed;441441442442/*443443 * The L1 transmit packet descriptor is comprised of four 32-bit words.
···197197};198198199199/* Main message type used between library and application */200200-struct __attribute__ ((packed)) ems_cpc_msg {200200+struct __packed ems_cpc_msg {201201 u8 type; /* type of message */202202 u8 length; /* length of data within union 'msg' */203203 u8 msgid; /* confirmation handle */
+1-1
drivers/net/dm9000.c
···961961 u8 RxPktReady;962962 u8 RxStatus;963963 __le16 RxLen;964964-} __attribute__((__packed__));964964+} __packed;965965966966/*967967 * Received a packet and pass to upper layer
···125125 __u8 bmAdditionalBOFs;126126 __u8 bIrdaRateSniff;127127 __u8 bMaxUnicastList;128128-} __attribute__ ((packed));128128+} __packed;129129130130/* class specific interface request to get the IrDA-USB class descriptor131131 * (6.2.5, USB-IrDA class spec 1.0) */
···530530 /* Size of the data. For ucode and PCM this is in bytes.531531 * For IV this is number-of-ivs. */532532 __be32 size;533533-} __attribute__((__packed__));533533+} __packed;534534535535/* Initial Value file format */536536#define B43_IV_OFFSET_MASK 0x7FFF···540540 union {541541 __be16 d16;542542 __be32 d32;543543- } data __attribute__((__packed__));544544-} __attribute__((__packed__));543543+ } data __packed;544544+} __packed;545545546546547547/* Data structures for DMA transmission, per 80211 core. */
···1010 union { \1111 __le32 data; \1212 __u8 raw[size]; \1313- } __attribute__((__packed__)); \1414- } __attribute__((__packed__))1313+ } __packed; \1414+ } __packed15151616/* struct b43_plcp_hdr4 */1717_b43_declare_plcp_hdr(4);···5757 __u8 rts_frame[16]; /* The RTS frame (if used) */5858 PAD_BYTES(2);5959 struct b43_plcp_hdr6 plcp; /* Main PLCP header */6060- } new_format __attribute__ ((__packed__));6060+ } new_format __packed;61616262 /* The old r351 format. */6363 struct {···6868 __u8 rts_frame[16]; /* The RTS frame (if used) */6969 PAD_BYTES(2);7070 struct b43_plcp_hdr6 plcp; /* Main PLCP header */7171- } old_format __attribute__ ((__packed__));7171+ } old_format __packed;72727373- } __attribute__ ((__packed__));7474-} __attribute__ ((__packed__));7373+ } __packed;7474+} __packed;75757676/* MAC TX control */7777#define B43_TXH_MAC_USEFBR 0x10000000 /* Use fallback rate for this AMPDU */···218218 struct {219219 __u8 jssi; /* PHY RX Status 1: JSSI */220220 __u8 sig_qual; /* PHY RX Status 1: Signal Quality */221221- } __attribute__ ((__packed__));221221+ } __packed;222222223223 /* RSSI for N-PHYs */224224 struct {225225 __s8 power0; /* PHY RX Status 1: Power 0 */226226 __s8 power1; /* PHY RX Status 1: Power 1 */227227- } __attribute__ ((__packed__));228228- } __attribute__ ((__packed__));227227+ } __packed;228228+ } __packed;229229 __le16 phy_status2; /* PHY RX Status 2 */230230 __le16 phy_status3; /* PHY RX Status 3 */231231 __le32 mac_status; /* MAC RX status */232232 __le16 mac_time;233233 __le16 channel;234234-} __attribute__ ((__packed__));234234+} __packed;235235236236/* PHY RX Status 0 */237237#define B43_RX_PHYST0_GAINCTL 0x4000 /* Gain Control */
+3-3
drivers/net/wireless/b43legacy/b43legacy.h
···372372 /* Size of the data. For ucode and PCM this is in bytes.373373 * For IV this is number-of-ivs. */374374 __be32 size;375375-} __attribute__((__packed__));375375+} __packed;376376377377/* Initial Value file format */378378#define B43legacy_IV_OFFSET_MASK 0x7FFF···382382 union {383383 __be16 d16;384384 __be32 d32;385385- } data __attribute__((__packed__));386386-} __attribute__((__packed__));385385+ } data __packed;386386+} __packed;387387388388#define B43legacy_PHYMODE(phytype) (1 << (phytype))389389#define B43legacy_PHYMODE_B B43legacy_PHYMODE \
···157157 * space more than this */158158 int high_mark; /* high watermark, stop queue if free159159 * space less than this */160160-} __attribute__ ((packed));160160+} __packed;161161162162/* One for each TFD */163163struct iwl_tx_info {···343343 struct iwl_tx_cmd tx;344344 struct iwl6000_channel_switch_cmd chswitch;345345 u8 payload[DEF_CMD_PAYLOAD_SIZE];346346- } __attribute__ ((packed)) cmd;347347-} __attribute__ ((packed));346346+ } __packed cmd;347347+} __packed;348348349349#define TFD_MAX_PAYLOAD_SIZE (sizeof(struct iwl_device_cmd))350350···590590 __le16 alternative; /* see comment */591591 __le32 length; /* not including type/length fields */592592 u8 data[0];593593-} __attribute__ ((packed));593593+} __packed;594594595595#define IWL_TLV_UCODE_MAGIC 0x0a4c5749596596
+6-6
drivers/net/wireless/iwlwifi/iwl-eeprom.h
···118118struct iwl_eeprom_channel {119119 u8 flags; /* EEPROM_CHANNEL_* flags copied from EEPROM */120120 s8 max_power_avg; /* max power (dBm) on this chnl, limit 31 */121121-} __attribute__ ((packed));121121+} __packed;122122123123/**124124 * iwl_eeprom_enhanced_txpwr structure···144144 s8 reserved;145145 s8 mimo2_max;146146 s8 mimo3_max;147147-} __attribute__ ((packed));147147+} __packed;148148149149/* 3945 Specific */150150#define EEPROM_3945_EEPROM_VERSION (0x2f)···312312 u8 gain_idx; /* Index into gain table */313313 u8 actual_pow; /* Measured RF output power, half-dBm */314314 s8 pa_det; /* Power amp detector level (not used) */315315-} __attribute__ ((packed));315315+} __packed;316316317317318318/*···328328 struct iwl_eeprom_calib_measure329329 measurements[EEPROM_TX_POWER_TX_CHAINS]330330 [EEPROM_TX_POWER_MEASUREMENTS];331331-} __attribute__ ((packed));331331+} __packed;332332333333/*334334 * txpower subband info.···345345 u8 ch_to; /* channel number of highest channel in subband */346346 struct iwl_eeprom_calib_ch_info ch1;347347 struct iwl_eeprom_calib_ch_info ch2;348348-} __attribute__ ((packed));348348+} __packed;349349350350351351/*···374374 __le16 voltage; /* signed */375375 struct iwl_eeprom_calib_subband_info376376 band_info[EEPROM_TX_POWER_BANDS];377377-} __attribute__ ((packed));377377+} __packed;378378379379380380#define ADDRESS_MSK 0x0000FFFF
···4949 __le32 pri_offset; /* Offset to primary plug data */5050 __le32 compat_offset; /* Offset to compatibility data*/5151 char signature[0]; /* FW signature length headersize-20 */5252-} __attribute__ ((packed));5252+} __packed;53535454/* Check the range of various header entries. Return a pointer to a5555 * description of the problem, or NULL if everything checks out. */
+9-9
drivers/net/wireless/orinoco/hermes.h
···205205 u8 retry_count;206206 u8 tx_rate;207207 __le16 tx_control;208208-} __attribute__ ((packed));208208+} __packed;209209210210#define HERMES_TXSTAT_RETRYERR (0x0001)211211#define HERMES_TXSTAT_AGEDERR (0x0002)···254254 /* Those last are probably not available in very old firmwares */255255 __le16 RxDiscards_WEPICVError;256256 __le16 RxDiscards_WEPExcluded;257257-} __attribute__ ((packed));257257+} __packed;258258259259/* Grabbed from wlan-ng - Thanks Mark... - Jean II260260 * This is the result of a scan inquiry command */···271271 u8 rates[10]; /* Bit rate supported */272272 __le16 proberesp_rate; /* Data rate of the response frame */273273 __le16 atim; /* ATIM window time, Kus (hostscan only) */274274-} __attribute__ ((packed));274274+} __packed;275275276276/* Same stuff for the Lucent/Agere card.277277 * Thanks to h1kari <h1kari AT dachb0den.com> - Jean II */···285285 /* bits: 0-ess, 1-ibss, 4-privacy [wep] */286286 __le16 essid_len; /* ESSID length */287287 u8 essid[32]; /* ESSID of the network */288288-} __attribute__ ((packed));288288+} __packed;289289290290/* Moustafa: Scan structure for Symbol cards */291291struct symbol_scan_apinfo {···303303 __le16 basic_rates; /* Basic rates bitmask */304304 u8 unknown2[6]; /* Always FF:FF:FF:FF:00:00 */305305 u8 unknown3[8]; /* Always 0, appeared in f/w 3.91-68 */306306-} __attribute__ ((packed));306306+} __packed;307307308308union hermes_scan_info {309309 struct agere_scan_apinfo a;···343343 __le16 beacon_interval;344344 __le16 capabilities;345345 u8 data[0];346346-} __attribute__ ((packed));346346+} __packed;347347348348#define HERMES_LINKSTATUS_NOT_CONNECTED (0x0000)349349#define HERMES_LINKSTATUS_CONNECTED (0x0001)···355355356356struct hermes_linkstatus {357357 __le16 linkstatus; /* Link status */358358-} __attribute__ ((packed));358358+} __packed;359359360360struct hermes_response {361361 u16 status, resp0, resp1, resp2;···365365struct hermes_idstring {366366 __le16 len;367367 __le16 val[16];368368-} __attribute__ ((packed));368368+} __packed;369369370370struct hermes_multicast {371371 u8 addr[HERMES_MAX_MULTICAST][ETH_ALEN];372372-} __attribute__ ((packed));372372+} __packed;373373374374/* Timeouts */375375#define HERMES_BAP_BUSY_TIMEOUT (10000) /* In iterations of ~1us */
+4-4
drivers/net/wireless/orinoco/hermes_dld.c
···6565 __le32 addr; /* adapter address where to write the block */6666 __le16 len; /* length of the data only, in bytes */6767 char data[0]; /* data to be written */6868-} __attribute__ ((packed));6868+} __packed;69697070/*7171 * Plug Data References are located in in the image after the last data···7777 __le32 addr; /* adapter address where to write the data */7878 __le32 len; /* expected length of the data, in bytes */7979 char next[0]; /* next PDR starts here */8080-} __attribute__ ((packed));8080+} __packed;81818282/*8383 * Plug Data Items are located in the EEPROM read from the adapter by···8888 __le16 len; /* length of ID and data, in words */8989 __le16 id; /* record ID */9090 char data[0]; /* plug data */9191-} __attribute__ ((packed));9191+} __packed;92929393/*** FW data block access functions ***/9494···317317 __le16 len; \318318 __le16 id; \319319 u8 val[length]; \320320-} __attribute__ ((packed)) default_pdr_data_##pid = { \320320+} __packed default_pdr_data_##pid = { \321321 cpu_to_le16((sizeof(default_pdr_data_##pid)/ \322322 sizeof(__le16)) - 1), \323323 cpu_to_le16(pid), \
+3-3
drivers/net/wireless/orinoco/hw.c
···4545/* Firmware version encoding */4646struct comp_id {4747 u16 id, variant, major, minor;4848-} __attribute__ ((packed));4848+} __packed;49495050static inline fwtype_t determine_firmware_type(struct comp_id *nic_id)5151{···995995 u8 tx_mic[MIC_KEYLEN];996996 u8 rx_mic[MIC_KEYLEN];997997 u8 tsc[ORINOCO_SEQ_LEN];998998- } __attribute__ ((packed)) buf;998998+ } __packed buf;999999 hermes_t *hw = &priv->hw;10001000 int ret;10011001 int err;···13261326 struct {13271327 u8 addr[ETH_ALEN];13281328 __le16 reason_code;13291329- } __attribute__ ((packed)) buf;13291329+ } __packed buf;1330133013311331 /* Currently only supported by WPA enabled Agere fw */13321332 if (!priv->has_wpa)
···101101 u8 device_id;102102 u8 flags;103103 u32 length;104104-} __attribute__ ((packed))104104+} __packed105105pimfor_header_t;106106107107/* A received and interrupt-processed management frame, either for
···117117 s8 rssi; /* in dB */118118 u8 rcpi; /* in dB */119119 u8 snr; /* in dB */120120-} __attribute__ ((packed));120120+} __packed;121121122122void wl1251_rx(struct wl1251 *wl);123123