aboutsummaryrefslogtreecommitdiffstats
path: root/net/l2tp
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-10-18 16:48:25 -0400
committerDavid S. Miller <davem@davemloft.net>2013-10-19 19:12:11 -0400
commitc1b1203d65955c179fec617ff17a21273f33a414 (patch)
treea84a93bae0abe5e796dce767a320ab4262ffb63f /net/l2tp
parent7e58487b8cf5871d2a0fa03892dbd4b3a620d07f (diff)
net: misc: 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 'net/l2tp')
-rw-r--r--net/l2tp/l2tp_core.h57
1 files changed, 34 insertions, 23 deletions
diff --git a/net/l2tp/l2tp_core.h b/net/l2tp/l2tp_core.h
index 6f251cbc2ed7..1ee9f6965d68 100644
--- a/net/l2tp/l2tp_core.h
+++ b/net/l2tp/l2tp_core.h
@@ -238,29 +238,40 @@ out:
238 return tunnel; 238 return tunnel;
239} 239}
240 240
241extern struct sock *l2tp_tunnel_sock_lookup(struct l2tp_tunnel *tunnel); 241struct sock *l2tp_tunnel_sock_lookup(struct l2tp_tunnel *tunnel);
242extern void l2tp_tunnel_sock_put(struct sock *sk); 242void l2tp_tunnel_sock_put(struct sock *sk);
243extern struct l2tp_session *l2tp_session_find(struct net *net, struct l2tp_tunnel *tunnel, u32 session_id); 243struct l2tp_session *l2tp_session_find(struct net *net,
244extern struct l2tp_session *l2tp_session_find_nth(struct l2tp_tunnel *tunnel, int nth); 244 struct l2tp_tunnel *tunnel,
245extern struct l2tp_session *l2tp_session_find_by_ifname(struct net *net, char *ifname); 245 u32 session_id);
246extern struct l2tp_tunnel *l2tp_tunnel_find(struct net *net, u32 tunnel_id); 246struct l2tp_session *l2tp_session_find_nth(struct l2tp_tunnel *tunnel, int nth);
247extern struct l2tp_tunnel *l2tp_tunnel_find_nth(struct net *net, int nth); 247struct l2tp_session *l2tp_session_find_by_ifname(struct net *net, char *ifname);
248 248struct l2tp_tunnel *l2tp_tunnel_find(struct net *net, u32 tunnel_id);
249extern int l2tp_tunnel_create(struct net *net, int fd, int version, u32 tunnel_id, u32 peer_tunnel_id, struct l2tp_tunnel_cfg *cfg, struct l2tp_tunnel **tunnelp); 249struct l2tp_tunnel *l2tp_tunnel_find_nth(struct net *net, int nth);
250extern void l2tp_tunnel_closeall(struct l2tp_tunnel *tunnel); 250
251extern int l2tp_tunnel_delete(struct l2tp_tunnel *tunnel); 251int l2tp_tunnel_create(struct net *net, int fd, int version, u32 tunnel_id,
252extern struct l2tp_session *l2tp_session_create(int priv_size, struct l2tp_tunnel *tunnel, u32 session_id, u32 peer_session_id, struct l2tp_session_cfg *cfg); 252 u32 peer_tunnel_id, struct l2tp_tunnel_cfg *cfg,
253extern void __l2tp_session_unhash(struct l2tp_session *session); 253 struct l2tp_tunnel **tunnelp);
254extern int l2tp_session_delete(struct l2tp_session *session); 254void l2tp_tunnel_closeall(struct l2tp_tunnel *tunnel);
255extern void l2tp_session_free(struct l2tp_session *session); 255int l2tp_tunnel_delete(struct l2tp_tunnel *tunnel);
256extern void l2tp_recv_common(struct l2tp_session *session, struct sk_buff *skb, unsigned char *ptr, unsigned char *optr, u16 hdrflags, int length, int (*payload_hook)(struct sk_buff *skb)); 256struct l2tp_session *l2tp_session_create(int priv_size,
257extern int l2tp_session_queue_purge(struct l2tp_session *session); 257 struct l2tp_tunnel *tunnel,
258extern int l2tp_udp_encap_recv(struct sock *sk, struct sk_buff *skb); 258 u32 session_id, u32 peer_session_id,
259 259 struct l2tp_session_cfg *cfg);
260extern int l2tp_xmit_skb(struct l2tp_session *session, struct sk_buff *skb, int hdr_len); 260void __l2tp_session_unhash(struct l2tp_session *session);
261 261int l2tp_session_delete(struct l2tp_session *session);
262extern int l2tp_nl_register_ops(enum l2tp_pwtype pw_type, const struct l2tp_nl_cmd_ops *ops); 262void l2tp_session_free(struct l2tp_session *session);
263extern void l2tp_nl_unregister_ops(enum l2tp_pwtype pw_type); 263void l2tp_recv_common(struct l2tp_session *session, struct sk_buff *skb,
264 unsigned char *ptr, unsigned char *optr, u16 hdrflags,
265 int length, int (*payload_hook)(struct sk_buff *skb));
266int l2tp_session_queue_purge(struct l2tp_session *session);
267int l2tp_udp_encap_recv(struct sock *sk, struct sk_buff *skb);
268
269int l2tp_xmit_skb(struct l2tp_session *session, struct sk_buff *skb,
270 int hdr_len);
271
272int l2tp_nl_register_ops(enum l2tp_pwtype pw_type,
273 const struct l2tp_nl_cmd_ops *ops);
274void l2tp_nl_unregister_ops(enum l2tp_pwtype pw_type);
264 275
265/* Session reference counts. Incremented when code obtains a reference 276/* Session reference counts. Incremented when code obtains a reference
266 * to a session. 277 * to a session.