diff options
author | Andy Grover <andy.grover@oracle.com> | 2010-08-25 12:34:10 -0400 |
---|---|---|
committer | Andy Grover <andy.grover@oracle.com> | 2010-09-08 21:16:54 -0400 |
commit | a46f561b774d90d8616473d56696e7d44fa1c9f1 (patch) | |
tree | acfffa1745ee08a8ea863143df745a6e734855e2 /include/linux/rds.h | |
parent | fd128dfa50cfc4f2959dc4aa5d7468d33b988332 (diff) |
RDS: rds.h: Replace u_int[size]_t with uint[size]_t
Replace e.g. u_int32_t types with the more common uint32_t.
Reported-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Andy Grover <andy.grover@oracle.com>
Diffstat (limited to 'include/linux/rds.h')
-rw-r--r-- | include/linux/rds.h | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/include/linux/rds.h b/include/linux/rds.h index f371f885a352..3576b31b6b7b 100644 --- a/include/linux/rds.h +++ b/include/linux/rds.h | |||
@@ -93,8 +93,8 @@ | |||
93 | #define RDS_INFO_LAST 10010 | 93 | #define RDS_INFO_LAST 10010 |
94 | 94 | ||
95 | struct rds_info_counter { | 95 | struct rds_info_counter { |
96 | u_int8_t name[32]; | 96 | uint8_t name[32]; |
97 | u_int64_t value; | 97 | uint64_t value; |
98 | } __attribute__((packed)); | 98 | } __attribute__((packed)); |
99 | 99 | ||
100 | #define RDS_INFO_CONNECTION_FLAG_SENDING 0x01 | 100 | #define RDS_INFO_CONNECTION_FLAG_SENDING 0x01 |
@@ -104,18 +104,18 @@ struct rds_info_counter { | |||
104 | #define TRANSNAMSIZ 16 | 104 | #define TRANSNAMSIZ 16 |
105 | 105 | ||
106 | struct rds_info_connection { | 106 | struct rds_info_connection { |
107 | u_int64_t next_tx_seq; | 107 | uint64_t next_tx_seq; |
108 | u_int64_t next_rx_seq; | 108 | uint64_t next_rx_seq; |
109 | __be32 laddr; | 109 | __be32 laddr; |
110 | __be32 faddr; | 110 | __be32 faddr; |
111 | u_int8_t transport[TRANSNAMSIZ]; /* null term ascii */ | 111 | uint8_t transport[TRANSNAMSIZ]; /* null term ascii */ |
112 | u_int8_t flags; | 112 | uint8_t flags; |
113 | } __attribute__((packed)); | 113 | } __attribute__((packed)); |
114 | 114 | ||
115 | struct rds_info_flow { | 115 | struct rds_info_flow { |
116 | __be32 laddr; | 116 | __be32 laddr; |
117 | __be32 faddr; | 117 | __be32 faddr; |
118 | u_int32_t bytes; | 118 | uint32_t bytes; |
119 | __be16 lport; | 119 | __be16 lport; |
120 | __be16 fport; | 120 | __be16 fport; |
121 | } __attribute__((packed)); | 121 | } __attribute__((packed)); |
@@ -124,23 +124,23 @@ struct rds_info_flow { | |||
124 | #define RDS_INFO_MESSAGE_FLAG_FAST_ACK 0x02 | 124 | #define RDS_INFO_MESSAGE_FLAG_FAST_ACK 0x02 |
125 | 125 | ||
126 | struct rds_info_message { | 126 | struct rds_info_message { |
127 | u_int64_t seq; | 127 | uint64_t seq; |
128 | u_int32_t len; | 128 | uint32_t len; |
129 | __be32 laddr; | 129 | __be32 laddr; |
130 | __be32 faddr; | 130 | __be32 faddr; |
131 | __be16 lport; | 131 | __be16 lport; |
132 | __be16 fport; | 132 | __be16 fport; |
133 | u_int8_t flags; | 133 | uint8_t flags; |
134 | } __attribute__((packed)); | 134 | } __attribute__((packed)); |
135 | 135 | ||
136 | struct rds_info_socket { | 136 | struct rds_info_socket { |
137 | u_int32_t sndbuf; | 137 | uint32_t sndbuf; |
138 | __be32 bound_addr; | 138 | __be32 bound_addr; |
139 | __be32 connected_addr; | 139 | __be32 connected_addr; |
140 | __be16 bound_port; | 140 | __be16 bound_port; |
141 | __be16 connected_port; | 141 | __be16 connected_port; |
142 | u_int32_t rcvbuf; | 142 | uint32_t rcvbuf; |
143 | u_int64_t inum; | 143 | uint64_t inum; |
144 | } __attribute__((packed)); | 144 | } __attribute__((packed)); |
145 | 145 | ||
146 | struct rds_info_tcp_socket { | 146 | struct rds_info_tcp_socket { |
@@ -148,11 +148,11 @@ struct rds_info_tcp_socket { | |||
148 | __be16 local_port; | 148 | __be16 local_port; |
149 | __be32 peer_addr; | 149 | __be32 peer_addr; |
150 | __be16 peer_port; | 150 | __be16 peer_port; |
151 | u_int64_t hdr_rem; | 151 | uint64_t hdr_rem; |
152 | u_int64_t data_rem; | 152 | uint64_t data_rem; |
153 | u_int32_t last_sent_nxt; | 153 | uint32_t last_sent_nxt; |
154 | u_int32_t last_expected_una; | 154 | uint32_t last_expected_una; |
155 | u_int32_t last_seen_una; | 155 | uint32_t last_seen_una; |
156 | } __attribute__((packed)); | 156 | } __attribute__((packed)); |
157 | 157 | ||
158 | #define RDS_IB_GID_LEN 16 | 158 | #define RDS_IB_GID_LEN 16 |
@@ -207,38 +207,38 @@ struct rds_info_rdma_connection { | |||
207 | * (so that the application does not have to worry about | 207 | * (so that the application does not have to worry about |
208 | * alignment). | 208 | * alignment). |
209 | */ | 209 | */ |
210 | typedef u_int64_t rds_rdma_cookie_t; | 210 | typedef uint64_t rds_rdma_cookie_t; |
211 | 211 | ||
212 | struct rds_iovec { | 212 | struct rds_iovec { |
213 | u_int64_t addr; | 213 | uint64_t addr; |
214 | u_int64_t bytes; | 214 | uint64_t bytes; |
215 | }; | 215 | }; |
216 | 216 | ||
217 | struct rds_get_mr_args { | 217 | struct rds_get_mr_args { |
218 | struct rds_iovec vec; | 218 | struct rds_iovec vec; |
219 | u_int64_t cookie_addr; | 219 | uint64_t cookie_addr; |
220 | uint64_t flags; | 220 | uint64_t flags; |
221 | }; | 221 | }; |
222 | 222 | ||
223 | struct rds_get_mr_for_dest_args { | 223 | struct rds_get_mr_for_dest_args { |
224 | struct sockaddr_storage dest_addr; | 224 | struct sockaddr_storage dest_addr; |
225 | struct rds_iovec vec; | 225 | struct rds_iovec vec; |
226 | u_int64_t cookie_addr; | 226 | uint64_t cookie_addr; |
227 | uint64_t flags; | 227 | uint64_t flags; |
228 | }; | 228 | }; |
229 | 229 | ||
230 | struct rds_free_mr_args { | 230 | struct rds_free_mr_args { |
231 | rds_rdma_cookie_t cookie; | 231 | rds_rdma_cookie_t cookie; |
232 | u_int64_t flags; | 232 | uint64_t flags; |
233 | }; | 233 | }; |
234 | 234 | ||
235 | struct rds_rdma_args { | 235 | struct rds_rdma_args { |
236 | rds_rdma_cookie_t cookie; | 236 | rds_rdma_cookie_t cookie; |
237 | struct rds_iovec remote_vec; | 237 | struct rds_iovec remote_vec; |
238 | u_int64_t local_vec_addr; | 238 | uint64_t local_vec_addr; |
239 | u_int64_t nr_local; | 239 | uint64_t nr_local; |
240 | u_int64_t flags; | 240 | uint64_t flags; |
241 | u_int64_t user_token; | 241 | uint64_t user_token; |
242 | }; | 242 | }; |
243 | 243 | ||
244 | struct rds_atomic_args { | 244 | struct rds_atomic_args { |
@@ -269,7 +269,7 @@ struct rds_atomic_args { | |||
269 | }; | 269 | }; |
270 | 270 | ||
271 | struct rds_rdma_notify { | 271 | struct rds_rdma_notify { |
272 | u_int64_t user_token; | 272 | uint64_t user_token; |
273 | int32_t status; | 273 | int32_t status; |
274 | }; | 274 | }; |
275 | 275 | ||