aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wimax
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2010-06-02 14:10:09 -0400
committerDavid S. Miller <davem@davemloft.net>2010-06-03 06:18:23 -0400
commitba2d3587912f82d1ab4367975b1df460db60fb1e (patch)
tree1e4e04caf23274bb4e39edbfc5713b4856326953 /drivers/net/wimax
parent1273d97674a1782ff55b823aa6c40aea9b538aaf (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/wimax')
-rw-r--r--drivers/net/wimax/i2400m/control.c2
-rw-r--r--drivers/net/wimax/i2400m/fw.c8
-rw-r--r--drivers/net/wimax/i2400m/op-rfkill.c2
3 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wimax/i2400m/control.c b/drivers/net/wimax/i2400m/control.c
index d86e8f31e7fc..2f725d0cc762 100644
--- a/drivers/net/wimax/i2400m/control.c
+++ b/drivers/net/wimax/i2400m/control.c
@@ -848,7 +848,7 @@ struct i2400m_cmd_enter_power_save {
848 struct i2400m_l3l4_hdr hdr; 848 struct i2400m_l3l4_hdr hdr;
849 struct i2400m_tlv_hdr tlv; 849 struct i2400m_tlv_hdr tlv;
850 __le32 val; 850 __le32 val;
851} __attribute__((packed)); 851} __packed;
852 852
853 853
854/* 854/*
diff --git a/drivers/net/wimax/i2400m/fw.c b/drivers/net/wimax/i2400m/fw.c
index 3f283bff0ff7..e9b34b0cb197 100644
--- a/drivers/net/wimax/i2400m/fw.c
+++ b/drivers/net/wimax/i2400m/fw.c
@@ -651,7 +651,7 @@ static int i2400m_download_chunk(struct i2400m *i2400m, const void *chunk,
651 struct { 651 struct {
652 struct i2400m_bootrom_header cmd; 652 struct i2400m_bootrom_header cmd;
653 u8 cmd_payload[chunk_len]; 653 u8 cmd_payload[chunk_len];
654 } __attribute__((packed)) *buf; 654 } __packed *buf;
655 struct i2400m_bootrom_header ack; 655 struct i2400m_bootrom_header ack;
656 656
657 d_fnstart(5, dev, "(i2400m %p chunk %p __chunk_len %zu addr 0x%08lx " 657 d_fnstart(5, dev, "(i2400m %p chunk %p __chunk_len %zu addr 0x%08lx "
@@ -794,7 +794,7 @@ int i2400m_dnload_finalize(struct i2400m *i2400m,
794 struct { 794 struct {
795 struct i2400m_bootrom_header cmd; 795 struct i2400m_bootrom_header cmd;
796 u8 cmd_pl[0]; 796 u8 cmd_pl[0];
797 } __attribute__((packed)) *cmd_buf; 797 } __packed *cmd_buf;
798 size_t signature_block_offset, signature_block_size; 798 size_t signature_block_offset, signature_block_size;
799 799
800 d_fnstart(3, dev, "offset %zu\n", offset); 800 d_fnstart(3, dev, "offset %zu\n", offset);
@@ -1029,7 +1029,7 @@ int i2400m_read_mac_addr(struct i2400m *i2400m)
1029 struct { 1029 struct {
1030 struct i2400m_bootrom_header ack; 1030 struct i2400m_bootrom_header ack;
1031 u8 ack_pl[16]; 1031 u8 ack_pl[16];
1032 } __attribute__((packed)) ack_buf; 1032 } __packed ack_buf;
1033 1033
1034 d_fnstart(5, dev, "(i2400m %p)\n", i2400m); 1034 d_fnstart(5, dev, "(i2400m %p)\n", i2400m);
1035 cmd = i2400m->bm_cmd_buf; 1035 cmd = i2400m->bm_cmd_buf;
@@ -1115,7 +1115,7 @@ int i2400m_dnload_init_signed(struct i2400m *i2400m,
1115 struct { 1115 struct {
1116 struct i2400m_bootrom_header cmd; 1116 struct i2400m_bootrom_header cmd;
1117 struct i2400m_bcf_hdr cmd_pl; 1117 struct i2400m_bcf_hdr cmd_pl;
1118 } __attribute__((packed)) *cmd_buf; 1118 } __packed *cmd_buf;
1119 struct i2400m_bootrom_header ack; 1119 struct i2400m_bootrom_header ack;
1120 1120
1121 d_fnstart(5, dev, "(i2400m %p bcf_hdr %p)\n", i2400m, bcf_hdr); 1121 d_fnstart(5, dev, "(i2400m %p bcf_hdr %p)\n", i2400m, bcf_hdr);
diff --git a/drivers/net/wimax/i2400m/op-rfkill.c b/drivers/net/wimax/i2400m/op-rfkill.c
index 035e4cf3e6ed..9e02b90b0080 100644
--- a/drivers/net/wimax/i2400m/op-rfkill.c
+++ b/drivers/net/wimax/i2400m/op-rfkill.c
@@ -91,7 +91,7 @@ int i2400m_op_rfkill_sw_toggle(struct wimax_dev *wimax_dev,
91 struct { 91 struct {
92 struct i2400m_l3l4_hdr hdr; 92 struct i2400m_l3l4_hdr hdr;
93 struct i2400m_tlv_rf_operation sw_rf; 93 struct i2400m_tlv_rf_operation sw_rf;
94 } __attribute__((packed)) *cmd; 94 } __packed *cmd;
95 char strerr[32]; 95 char strerr[32];
96 96
97 d_fnstart(4, dev, "(wimax_dev %p state %d)\n", wimax_dev, state); 97 d_fnstart(4, dev, "(wimax_dev %p state %d)\n", wimax_dev, state);