diff options
author | Joe Perches <joe@perches.com> | 2013-09-21 13:22:41 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-09-21 14:01:38 -0400 |
commit | 1fd51155387264e3ca72094abadcaadb3f5969f6 (patch) | |
tree | 3764f7faaa6ff3e8511fb77049da5a6a50380cc0 /include/net/inet_connection_sock.h | |
parent | e60ab84dd59cc0ddb46a7696a56f9de8b8b22f39 (diff) |
inet*.h: Remove extern from function prototypes
There are a mix of function prototypes with and without extern
in the kernel sources. Standardize on not using extern for
function prototypes.
Function prototypes don't need to be written with extern.
extern is assumed by the compiler. Its use is as unnecessary as
using auto to declare automatic/local variables in a block.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/inet_connection_sock.h')
-rw-r--r-- | include/net/inet_connection_sock.h | 79 |
1 files changed, 38 insertions, 41 deletions
diff --git a/include/net/inet_connection_sock.h b/include/net/inet_connection_sock.h index de2c78529afa..c55aeed41ace 100644 --- a/include/net/inet_connection_sock.h +++ b/include/net/inet_connection_sock.h | |||
@@ -146,9 +146,9 @@ static inline void *inet_csk_ca(const struct sock *sk) | |||
146 | return (void *)inet_csk(sk)->icsk_ca_priv; | 146 | return (void *)inet_csk(sk)->icsk_ca_priv; |
147 | } | 147 | } |
148 | 148 | ||
149 | extern struct sock *inet_csk_clone_lock(const struct sock *sk, | 149 | struct sock *inet_csk_clone_lock(const struct sock *sk, |
150 | const struct request_sock *req, | 150 | const struct request_sock *req, |
151 | const gfp_t priority); | 151 | const gfp_t priority); |
152 | 152 | ||
153 | enum inet_csk_ack_state_t { | 153 | enum inet_csk_ack_state_t { |
154 | ICSK_ACK_SCHED = 1, | 154 | ICSK_ACK_SCHED = 1, |
@@ -157,11 +157,11 @@ enum inet_csk_ack_state_t { | |||
157 | ICSK_ACK_PUSHED2 = 8 | 157 | ICSK_ACK_PUSHED2 = 8 |
158 | }; | 158 | }; |
159 | 159 | ||
160 | extern void inet_csk_init_xmit_timers(struct sock *sk, | 160 | void inet_csk_init_xmit_timers(struct sock *sk, |
161 | void (*retransmit_handler)(unsigned long), | 161 | void (*retransmit_handler)(unsigned long), |
162 | void (*delack_handler)(unsigned long), | 162 | void (*delack_handler)(unsigned long), |
163 | void (*keepalive_handler)(unsigned long)); | 163 | void (*keepalive_handler)(unsigned long)); |
164 | extern void inet_csk_clear_xmit_timers(struct sock *sk); | 164 | void inet_csk_clear_xmit_timers(struct sock *sk); |
165 | 165 | ||
166 | static inline void inet_csk_schedule_ack(struct sock *sk) | 166 | static inline void inet_csk_schedule_ack(struct sock *sk) |
167 | { | 167 | { |
@@ -178,8 +178,8 @@ static inline void inet_csk_delack_init(struct sock *sk) | |||
178 | memset(&inet_csk(sk)->icsk_ack, 0, sizeof(inet_csk(sk)->icsk_ack)); | 178 | memset(&inet_csk(sk)->icsk_ack, 0, sizeof(inet_csk(sk)->icsk_ack)); |
179 | } | 179 | } |
180 | 180 | ||
181 | extern void inet_csk_delete_keepalive_timer(struct sock *sk); | 181 | void inet_csk_delete_keepalive_timer(struct sock *sk); |
182 | extern void inet_csk_reset_keepalive_timer(struct sock *sk, unsigned long timeout); | 182 | void inet_csk_reset_keepalive_timer(struct sock *sk, unsigned long timeout); |
183 | 183 | ||
184 | #ifdef INET_CSK_DEBUG | 184 | #ifdef INET_CSK_DEBUG |
185 | extern const char inet_csk_timer_bug_msg[]; | 185 | extern const char inet_csk_timer_bug_msg[]; |
@@ -241,23 +241,21 @@ static inline void inet_csk_reset_xmit_timer(struct sock *sk, const int what, | |||
241 | #endif | 241 | #endif |
242 | } | 242 | } |
243 | 243 | ||
244 | extern struct sock *inet_csk_accept(struct sock *sk, int flags, int *err); | 244 | struct sock *inet_csk_accept(struct sock *sk, int flags, int *err); |
245 | 245 | ||
246 | extern struct request_sock *inet_csk_search_req(const struct sock *sk, | 246 | struct request_sock *inet_csk_search_req(const struct sock *sk, |
247 | struct request_sock ***prevp, | 247 | struct request_sock ***prevp, |
248 | const __be16 rport, | 248 | const __be16 rport, |
249 | const __be32 raddr, | 249 | const __be32 raddr, |
250 | const __be32 laddr); | 250 | const __be32 laddr); |
251 | extern int inet_csk_bind_conflict(const struct sock *sk, | 251 | int inet_csk_bind_conflict(const struct sock *sk, |
252 | const struct inet_bind_bucket *tb, bool relax); | 252 | const struct inet_bind_bucket *tb, bool relax); |
253 | extern int inet_csk_get_port(struct sock *sk, unsigned short snum); | 253 | int inet_csk_get_port(struct sock *sk, unsigned short snum); |
254 | 254 | ||
255 | extern struct dst_entry* inet_csk_route_req(struct sock *sk, | 255 | struct dst_entry *inet_csk_route_req(struct sock *sk, struct flowi4 *fl4, |
256 | struct flowi4 *fl4, | 256 | const struct request_sock *req); |
257 | struct dst_entry *inet_csk_route_child_sock(struct sock *sk, struct sock *newsk, | ||
257 | const struct request_sock *req); | 258 | const struct request_sock *req); |
258 | extern struct dst_entry* inet_csk_route_child_sock(struct sock *sk, | ||
259 | struct sock *newsk, | ||
260 | const struct request_sock *req); | ||
261 | 259 | ||
262 | static inline void inet_csk_reqsk_queue_add(struct sock *sk, | 260 | static inline void inet_csk_reqsk_queue_add(struct sock *sk, |
263 | struct request_sock *req, | 261 | struct request_sock *req, |
@@ -266,9 +264,8 @@ static inline void inet_csk_reqsk_queue_add(struct sock *sk, | |||
266 | reqsk_queue_add(&inet_csk(sk)->icsk_accept_queue, req, sk, child); | 264 | reqsk_queue_add(&inet_csk(sk)->icsk_accept_queue, req, sk, child); |
267 | } | 265 | } |
268 | 266 | ||
269 | extern void inet_csk_reqsk_queue_hash_add(struct sock *sk, | 267 | void inet_csk_reqsk_queue_hash_add(struct sock *sk, struct request_sock *req, |
270 | struct request_sock *req, | 268 | unsigned long timeout); |
271 | unsigned long timeout); | ||
272 | 269 | ||
273 | static inline void inet_csk_reqsk_queue_removed(struct sock *sk, | 270 | static inline void inet_csk_reqsk_queue_removed(struct sock *sk, |
274 | struct request_sock *req) | 271 | struct request_sock *req) |
@@ -315,13 +312,13 @@ static inline void inet_csk_reqsk_queue_drop(struct sock *sk, | |||
315 | reqsk_free(req); | 312 | reqsk_free(req); |
316 | } | 313 | } |
317 | 314 | ||
318 | extern void inet_csk_reqsk_queue_prune(struct sock *parent, | 315 | void inet_csk_reqsk_queue_prune(struct sock *parent, |
319 | const unsigned long interval, | 316 | const unsigned long interval, |
320 | const unsigned long timeout, | 317 | const unsigned long timeout, |
321 | const unsigned long max_rto); | 318 | const unsigned long max_rto); |
322 | 319 | ||
323 | extern void inet_csk_destroy_sock(struct sock *sk); | 320 | void inet_csk_destroy_sock(struct sock *sk); |
324 | extern void inet_csk_prepare_forced_close(struct sock *sk); | 321 | void inet_csk_prepare_forced_close(struct sock *sk); |
325 | 322 | ||
326 | /* | 323 | /* |
327 | * LISTEN is a special case for poll.. | 324 | * LISTEN is a special case for poll.. |
@@ -332,15 +329,15 @@ static inline unsigned int inet_csk_listen_poll(const struct sock *sk) | |||
332 | (POLLIN | POLLRDNORM) : 0; | 329 | (POLLIN | POLLRDNORM) : 0; |
333 | } | 330 | } |
334 | 331 | ||
335 | extern int inet_csk_listen_start(struct sock *sk, const int nr_table_entries); | 332 | int inet_csk_listen_start(struct sock *sk, const int nr_table_entries); |
336 | extern void inet_csk_listen_stop(struct sock *sk); | 333 | void inet_csk_listen_stop(struct sock *sk); |
337 | 334 | ||
338 | extern void inet_csk_addr2sockaddr(struct sock *sk, struct sockaddr *uaddr); | 335 | void inet_csk_addr2sockaddr(struct sock *sk, struct sockaddr *uaddr); |
339 | 336 | ||
340 | extern int inet_csk_compat_getsockopt(struct sock *sk, int level, int optname, | 337 | int inet_csk_compat_getsockopt(struct sock *sk, int level, int optname, |
341 | char __user *optval, int __user *optlen); | 338 | char __user *optval, int __user *optlen); |
342 | extern int inet_csk_compat_setsockopt(struct sock *sk, int level, int optname, | 339 | int inet_csk_compat_setsockopt(struct sock *sk, int level, int optname, |
343 | char __user *optval, unsigned int optlen); | 340 | char __user *optval, unsigned int optlen); |
344 | 341 | ||
345 | extern struct dst_entry *inet_csk_update_pmtu(struct sock *sk, u32 mtu); | 342 | struct dst_entry *inet_csk_update_pmtu(struct sock *sk, u32 mtu); |
346 | #endif /* _INET_CONNECTION_SOCK_H */ | 343 | #endif /* _INET_CONNECTION_SOCK_H */ |