diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2012-04-15 01:58:06 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-15 12:44:40 -0400 |
commit | 95c961747284a6b83a5e2d81240e214b0fa3464d (patch) | |
tree | c7be86a00db3605a48a03109fafcbe31039ca2e0 /net/rxrpc/ar-internal.h | |
parent | 5e73ea1a31c3612aa6dfe44f864ca5b7b6a4cff9 (diff) |
net: cleanup unsigned to unsigned int
Use of "unsigned int" is preferred to bare "unsigned" in net tree.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rxrpc/ar-internal.h')
-rw-r--r-- | net/rxrpc/ar-internal.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/net/rxrpc/ar-internal.h b/net/rxrpc/ar-internal.h index 8e22bd345e71..a693aca2ae2e 100644 --- a/net/rxrpc/ar-internal.h +++ b/net/rxrpc/ar-internal.h | |||
@@ -83,7 +83,7 @@ struct rxrpc_skb_priv { | |||
83 | struct rxrpc_call *call; /* call with which associated */ | 83 | struct rxrpc_call *call; /* call with which associated */ |
84 | unsigned long resend_at; /* time in jiffies at which to resend */ | 84 | unsigned long resend_at; /* time in jiffies at which to resend */ |
85 | union { | 85 | union { |
86 | unsigned offset; /* offset into buffer of next read */ | 86 | unsigned int offset; /* offset into buffer of next read */ |
87 | int remain; /* amount of space remaining for next write */ | 87 | int remain; /* amount of space remaining for next write */ |
88 | u32 error; /* network error code */ | 88 | u32 error; /* network error code */ |
89 | bool need_resend; /* T if needs resending */ | 89 | bool need_resend; /* T if needs resending */ |
@@ -176,9 +176,9 @@ struct rxrpc_peer { | |||
176 | struct list_head error_targets; /* targets for net error distribution */ | 176 | struct list_head error_targets; /* targets for net error distribution */ |
177 | spinlock_t lock; /* access lock */ | 177 | spinlock_t lock; /* access lock */ |
178 | atomic_t usage; | 178 | atomic_t usage; |
179 | unsigned if_mtu; /* interface MTU for this peer */ | 179 | unsigned int if_mtu; /* interface MTU for this peer */ |
180 | unsigned mtu; /* network MTU for this peer */ | 180 | unsigned int mtu; /* network MTU for this peer */ |
181 | unsigned maxdata; /* data size (MTU - hdrsize) */ | 181 | unsigned int maxdata; /* data size (MTU - hdrsize) */ |
182 | unsigned short hdrsize; /* header size (IP + UDP + RxRPC) */ | 182 | unsigned short hdrsize; /* header size (IP + UDP + RxRPC) */ |
183 | int debug_id; /* debug ID for printks */ | 183 | int debug_id; /* debug ID for printks */ |
184 | int net_error; /* network error distributed */ | 184 | int net_error; /* network error distributed */ |
@@ -187,8 +187,8 @@ struct rxrpc_peer { | |||
187 | /* calculated RTT cache */ | 187 | /* calculated RTT cache */ |
188 | #define RXRPC_RTT_CACHE_SIZE 32 | 188 | #define RXRPC_RTT_CACHE_SIZE 32 |
189 | suseconds_t rtt; /* current RTT estimate (in uS) */ | 189 | suseconds_t rtt; /* current RTT estimate (in uS) */ |
190 | unsigned rtt_point; /* next entry at which to insert */ | 190 | unsigned int rtt_point; /* next entry at which to insert */ |
191 | unsigned rtt_usage; /* amount of cache actually used */ | 191 | unsigned int rtt_usage; /* amount of cache actually used */ |
192 | suseconds_t rtt_cache[RXRPC_RTT_CACHE_SIZE]; /* calculated RTT cache */ | 192 | suseconds_t rtt_cache[RXRPC_RTT_CACHE_SIZE]; /* calculated RTT cache */ |
193 | }; | 193 | }; |
194 | 194 | ||
@@ -271,7 +271,7 @@ struct rxrpc_connection { | |||
271 | } state; | 271 | } state; |
272 | int error; /* error code for local abort */ | 272 | int error; /* error code for local abort */ |
273 | int debug_id; /* debug ID for printks */ | 273 | int debug_id; /* debug ID for printks */ |
274 | unsigned call_counter; /* call ID counter */ | 274 | unsigned int call_counter; /* call ID counter */ |
275 | atomic_t serial; /* packet serial number counter */ | 275 | atomic_t serial; /* packet serial number counter */ |
276 | atomic_t hi_serial; /* highest serial number received */ | 276 | atomic_t hi_serial; /* highest serial number received */ |
277 | u8 avail_calls; /* number of calls available */ | 277 | u8 avail_calls; /* number of calls available */ |
@@ -592,7 +592,7 @@ extern struct rxrpc_transport *rxrpc_find_transport(struct rxrpc_local *, | |||
592 | /* | 592 | /* |
593 | * debug tracing | 593 | * debug tracing |
594 | */ | 594 | */ |
595 | extern unsigned rxrpc_debug; | 595 | extern unsigned int rxrpc_debug; |
596 | 596 | ||
597 | #define dbgprintk(FMT,...) \ | 597 | #define dbgprintk(FMT,...) \ |
598 | printk("[%-6.6s] "FMT"\n", current->comm ,##__VA_ARGS__) | 598 | printk("[%-6.6s] "FMT"\n", current->comm ,##__VA_ARGS__) |