diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-06-03 06:21:52 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-03 06:21:52 -0400 |
commit | bc10502dba37d3b210efd9f3867212298f13b78e (patch) | |
tree | af4542eaab79cd509244578f839167f16f3ab02d /include/rxrpc/packet.h | |
parent | ba2d3587912f82d1ab4367975b1df460db60fb1e (diff) |
net: use __packed annotation
cleanup patch.
Use new __packed annotation in net/ and include/
(except netfilter)
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/rxrpc/packet.h')
-rw-r--r-- | include/rxrpc/packet.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/rxrpc/packet.h b/include/rxrpc/packet.h index b69e6e173ea1..9b2c30897e50 100644 --- a/include/rxrpc/packet.h +++ b/include/rxrpc/packet.h | |||
@@ -65,7 +65,7 @@ struct rxrpc_header { | |||
65 | }; | 65 | }; |
66 | __be16 serviceId; /* service ID */ | 66 | __be16 serviceId; /* service ID */ |
67 | 67 | ||
68 | } __attribute__((packed)); | 68 | } __packed; |
69 | 69 | ||
70 | #define __rxrpc_header_off(X) offsetof(struct rxrpc_header,X) | 70 | #define __rxrpc_header_off(X) offsetof(struct rxrpc_header,X) |
71 | 71 | ||
@@ -120,7 +120,7 @@ struct rxrpc_ackpacket { | |||
120 | #define RXRPC_ACK_TYPE_NACK 0 | 120 | #define RXRPC_ACK_TYPE_NACK 0 |
121 | #define RXRPC_ACK_TYPE_ACK 1 | 121 | #define RXRPC_ACK_TYPE_ACK 1 |
122 | 122 | ||
123 | } __attribute__((packed)); | 123 | } __packed; |
124 | 124 | ||
125 | /* | 125 | /* |
126 | * ACK packets can have a further piece of information tagged on the end | 126 | * ACK packets can have a further piece of information tagged on the end |
@@ -141,7 +141,7 @@ struct rxkad_challenge { | |||
141 | __be32 nonce; /* encrypted random number */ | 141 | __be32 nonce; /* encrypted random number */ |
142 | __be32 min_level; /* minimum security level */ | 142 | __be32 min_level; /* minimum security level */ |
143 | __be32 __padding; /* padding to 8-byte boundary */ | 143 | __be32 __padding; /* padding to 8-byte boundary */ |
144 | } __attribute__((packed)); | 144 | } __packed; |
145 | 145 | ||
146 | /*****************************************************************************/ | 146 | /*****************************************************************************/ |
147 | /* | 147 | /* |
@@ -164,7 +164,7 @@ struct rxkad_response { | |||
164 | 164 | ||
165 | __be32 kvno; /* Kerberos key version number */ | 165 | __be32 kvno; /* Kerberos key version number */ |
166 | __be32 ticket_len; /* Kerberos ticket length */ | 166 | __be32 ticket_len; /* Kerberos ticket length */ |
167 | } __attribute__((packed)); | 167 | } __packed; |
168 | 168 | ||
169 | /*****************************************************************************/ | 169 | /*****************************************************************************/ |
170 | /* | 170 | /* |