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>
This commit is contained in:
committed by
David S. Miller
parent
1273d97674
commit
ba2d358791
@@ -19,35 +19,35 @@ struct hostap_ieee80211_mgmt {
|
||||
__le16 status_code;
|
||||
/* possibly followed by Challenge text */
|
||||
u8 variable[0];
|
||||
} __attribute__ ((packed)) auth;
|
||||
} __packed auth;
|
||||
struct {
|
||||
__le16 reason_code;
|
||||
} __attribute__ ((packed)) deauth;
|
||||
} __packed deauth;
|
||||
struct {
|
||||
__le16 capab_info;
|
||||
__le16 listen_interval;
|
||||
/* followed by SSID and Supported rates */
|
||||
u8 variable[0];
|
||||
} __attribute__ ((packed)) assoc_req;
|
||||
} __packed assoc_req;
|
||||
struct {
|
||||
__le16 capab_info;
|
||||
__le16 status_code;
|
||||
__le16 aid;
|
||||
/* followed by Supported rates */
|
||||
u8 variable[0];
|
||||
} __attribute__ ((packed)) assoc_resp, reassoc_resp;
|
||||
} __packed assoc_resp, reassoc_resp;
|
||||
struct {
|
||||
__le16 capab_info;
|
||||
__le16 listen_interval;
|
||||
u8 current_ap[6];
|
||||
/* followed by SSID and Supported rates */
|
||||
u8 variable[0];
|
||||
} __attribute__ ((packed)) reassoc_req;
|
||||
} __packed reassoc_req;
|
||||
struct {
|
||||
__le16 reason_code;
|
||||
} __attribute__ ((packed)) disassoc;
|
||||
} __packed disassoc;
|
||||
struct {
|
||||
} __attribute__ ((packed)) probe_req;
|
||||
} __packed probe_req;
|
||||
struct {
|
||||
u8 timestamp[8];
|
||||
__le16 beacon_int;
|
||||
@@ -55,9 +55,9 @@ struct hostap_ieee80211_mgmt {
|
||||
/* followed by some of SSID, Supported rates,
|
||||
* FH Params, DS Params, CF Params, IBSS Params, TIM */
|
||||
u8 variable[0];
|
||||
} __attribute__ ((packed)) beacon, probe_resp;
|
||||
} __packed beacon, probe_resp;
|
||||
} u;
|
||||
} __attribute__ ((packed));
|
||||
} __packed;
|
||||
|
||||
|
||||
#define IEEE80211_MGMT_HDR_LEN 24
|
||||
|
@@ -179,7 +179,7 @@ struct hfa384x_comp_ident
|
||||
__le16 variant;
|
||||
__le16 major;
|
||||
__le16 minor;
|
||||
} __attribute__ ((packed));
|
||||
} __packed;
|
||||
|
||||
#define HFA384X_COMP_ID_PRI 0x15
|
||||
#define HFA384X_COMP_ID_STA 0x1f
|
||||
@@ -192,14 +192,14 @@ struct hfa384x_sup_range
|
||||
__le16 variant;
|
||||
__le16 bottom;
|
||||
__le16 top;
|
||||
} __attribute__ ((packed));
|
||||
} __packed;
|
||||
|
||||
|
||||
struct hfa384x_build_id
|
||||
{
|
||||
__le16 pri_seq;
|
||||
__le16 sec_seq;
|
||||
} __attribute__ ((packed));
|
||||
} __packed;
|
||||
|
||||
/* FD01 - Download Buffer */
|
||||
struct hfa384x_rid_download_buffer
|
||||
@@ -207,14 +207,14 @@ struct hfa384x_rid_download_buffer
|
||||
__le16 page;
|
||||
__le16 offset;
|
||||
__le16 length;
|
||||
} __attribute__ ((packed));
|
||||
} __packed;
|
||||
|
||||
/* BSS connection quality (RID FD43 range, RID FD51 dBm-normalized) */
|
||||
struct hfa384x_comms_quality {
|
||||
__le16 comm_qual; /* 0 .. 92 */
|
||||
__le16 signal_level; /* 27 .. 154 */
|
||||
__le16 noise_level; /* 27 .. 154 */
|
||||
} __attribute__ ((packed));
|
||||
} __packed;
|
||||
|
||||
|
||||
/* netdevice private ioctls (used, e.g., with iwpriv from user space) */
|
||||
|
@@ -31,14 +31,14 @@ struct linux_wlan_ng_val {
|
||||
u32 did;
|
||||
u16 status, len;
|
||||
u32 data;
|
||||
} __attribute__ ((packed));
|
||||
} __packed;
|
||||
|
||||
struct linux_wlan_ng_prism_hdr {
|
||||
u32 msgcode, msglen;
|
||||
char devname[16];
|
||||
struct linux_wlan_ng_val hosttime, mactime, channel, rssi, sq, signal,
|
||||
noise, rate, istx, frmlen;
|
||||
} __attribute__ ((packed));
|
||||
} __packed;
|
||||
|
||||
struct linux_wlan_ng_cap_hdr {
|
||||
__be32 version;
|
||||
@@ -55,7 +55,7 @@ struct linux_wlan_ng_cap_hdr {
|
||||
__be32 ssi_noise;
|
||||
__be32 preamble;
|
||||
__be32 encoding;
|
||||
} __attribute__ ((packed));
|
||||
} __packed;
|
||||
|
||||
struct hostap_radiotap_rx {
|
||||
struct ieee80211_radiotap_header hdr;
|
||||
@@ -66,7 +66,7 @@ struct hostap_radiotap_rx {
|
||||
__le16 chan_flags;
|
||||
s8 dbm_antsignal;
|
||||
s8 dbm_antnoise;
|
||||
} __attribute__ ((packed));
|
||||
} __packed;
|
||||
|
||||
#define LWNG_CAP_DID_BASE (4 | (1 << 6)) /* section 4, group 1 */
|
||||
#define LWNG_CAPHDR_VERSION 0x80211001
|
||||
@@ -97,7 +97,7 @@ struct hfa384x_rx_frame {
|
||||
__be16 len;
|
||||
|
||||
/* followed by frame data; max 2304 bytes */
|
||||
} __attribute__ ((packed));
|
||||
} __packed;
|
||||
|
||||
|
||||
struct hfa384x_tx_frame {
|
||||
@@ -126,14 +126,14 @@ struct hfa384x_tx_frame {
|
||||
__be16 len;
|
||||
|
||||
/* followed by frame data; max 2304 bytes */
|
||||
} __attribute__ ((packed));
|
||||
} __packed;
|
||||
|
||||
|
||||
struct hfa384x_rid_hdr
|
||||
{
|
||||
__le16 len;
|
||||
__le16 rid;
|
||||
} __attribute__ ((packed));
|
||||
} __packed;
|
||||
|
||||
|
||||
/* Macro for converting signal levels (range 27 .. 154) to wireless ext
|
||||
@@ -145,24 +145,24 @@ struct hfa384x_rid_hdr
|
||||
struct hfa384x_scan_request {
|
||||
__le16 channel_list;
|
||||
__le16 txrate; /* HFA384X_RATES_* */
|
||||
} __attribute__ ((packed));
|
||||
} __packed;
|
||||
|
||||
struct hfa384x_hostscan_request {
|
||||
__le16 channel_list;
|
||||
__le16 txrate;
|
||||
__le16 target_ssid_len;
|
||||
u8 target_ssid[32];
|
||||
} __attribute__ ((packed));
|
||||
} __packed;
|
||||
|
||||
struct hfa384x_join_request {
|
||||
u8 bssid[6];
|
||||
__le16 channel;
|
||||
} __attribute__ ((packed));
|
||||
} __packed;
|
||||
|
||||
struct hfa384x_info_frame {
|
||||
__le16 len;
|
||||
__le16 type;
|
||||
} __attribute__ ((packed));
|
||||
} __packed;
|
||||
|
||||
struct hfa384x_comm_tallies {
|
||||
__le16 tx_unicast_frames;
|
||||
@@ -186,7 +186,7 @@ struct hfa384x_comm_tallies {
|
||||
__le16 rx_discards_wep_undecryptable;
|
||||
__le16 rx_message_in_msg_fragments;
|
||||
__le16 rx_message_in_bad_msg_fragments;
|
||||
} __attribute__ ((packed));
|
||||
} __packed;
|
||||
|
||||
struct hfa384x_comm_tallies32 {
|
||||
__le32 tx_unicast_frames;
|
||||
@@ -210,7 +210,7 @@ struct hfa384x_comm_tallies32 {
|
||||
__le32 rx_discards_wep_undecryptable;
|
||||
__le32 rx_message_in_msg_fragments;
|
||||
__le32 rx_message_in_bad_msg_fragments;
|
||||
} __attribute__ ((packed));
|
||||
} __packed;
|
||||
|
||||
struct hfa384x_scan_result_hdr {
|
||||
__le16 reserved;
|
||||
@@ -219,7 +219,7 @@ struct hfa384x_scan_result_hdr {
|
||||
#define HFA384X_SCAN_HOST_INITIATED 1
|
||||
#define HFA384X_SCAN_FIRMWARE_INITIATED 2
|
||||
#define HFA384X_SCAN_INQUIRY_FROM_HOST 3
|
||||
} __attribute__ ((packed));
|
||||
} __packed;
|
||||
|
||||
#define HFA384X_SCAN_MAX_RESULTS 32
|
||||
|
||||
@@ -234,7 +234,7 @@ struct hfa384x_scan_result {
|
||||
u8 ssid[32];
|
||||
u8 sup_rates[10];
|
||||
__le16 rate;
|
||||
} __attribute__ ((packed));
|
||||
} __packed;
|
||||
|
||||
struct hfa384x_hostscan_result {
|
||||
__le16 chid;
|
||||
@@ -248,7 +248,7 @@ struct hfa384x_hostscan_result {
|
||||
u8 sup_rates[10];
|
||||
__le16 rate;
|
||||
__le16 atim;
|
||||
} __attribute__ ((packed));
|
||||
} __packed;
|
||||
|
||||
struct comm_tallies_sums {
|
||||
unsigned int tx_unicast_frames;
|
||||
|
Reference in New Issue
Block a user