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/mlx4/eq.c | |
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/mlx4/eq.c')
-rw-r--r-- | drivers/net/mlx4/eq.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/mlx4/eq.c b/drivers/net/mlx4/eq.c index 423053482ed5..22d0b3b796b4 100644 --- a/drivers/net/mlx4/eq.c +++ b/drivers/net/mlx4/eq.c | |||
@@ -110,7 +110,7 @@ struct mlx4_eqe { | |||
110 | u32 raw[6]; | 110 | u32 raw[6]; |
111 | struct { | 111 | struct { |
112 | __be32 cqn; | 112 | __be32 cqn; |
113 | } __attribute__((packed)) comp; | 113 | } __packed comp; |
114 | struct { | 114 | struct { |
115 | u16 reserved1; | 115 | u16 reserved1; |
116 | __be16 token; | 116 | __be16 token; |
@@ -118,27 +118,27 @@ struct mlx4_eqe { | |||
118 | u8 reserved3[3]; | 118 | u8 reserved3[3]; |
119 | u8 status; | 119 | u8 status; |
120 | __be64 out_param; | 120 | __be64 out_param; |
121 | } __attribute__((packed)) cmd; | 121 | } __packed cmd; |
122 | struct { | 122 | struct { |
123 | __be32 qpn; | 123 | __be32 qpn; |
124 | } __attribute__((packed)) qp; | 124 | } __packed qp; |
125 | struct { | 125 | struct { |
126 | __be32 srqn; | 126 | __be32 srqn; |
127 | } __attribute__((packed)) srq; | 127 | } __packed srq; |
128 | struct { | 128 | struct { |
129 | __be32 cqn; | 129 | __be32 cqn; |
130 | u32 reserved1; | 130 | u32 reserved1; |
131 | u8 reserved2[3]; | 131 | u8 reserved2[3]; |
132 | u8 syndrome; | 132 | u8 syndrome; |
133 | } __attribute__((packed)) cq_err; | 133 | } __packed cq_err; |
134 | struct { | 134 | struct { |
135 | u32 reserved1[2]; | 135 | u32 reserved1[2]; |
136 | __be32 port; | 136 | __be32 port; |
137 | } __attribute__((packed)) port_change; | 137 | } __packed port_change; |
138 | } event; | 138 | } event; |
139 | u8 reserved3[3]; | 139 | u8 reserved3[3]; |
140 | u8 owner; | 140 | u8 owner; |
141 | } __attribute__((packed)); | 141 | } __packed; |
142 | 142 | ||
143 | static void eq_set_ci(struct mlx4_eq *eq, int req_not) | 143 | static void eq_set_ci(struct mlx4_eq *eq, int req_not) |
144 | { | 144 | { |