summaryrefslogtreecommitdiffstats
path: root/net/sctp/socket.c
diff options
context:
space:
mode:
authorYing Xue <ying.xue@windriver.com>2015-03-25 07:13:01 +0100
committerDavid S. Miller <davem@davemloft.net>2015-03-25 16:40:16 +0100
commit7e3ea6d5c4f4880dbdf85f4083f40d8a3dc9b906 (patch)
tree0ec5daee4af10d7e98b7c22a51a582dae5a60875 /net/sctp/socket.c
parenttcp: fix ipv4 mapped request socks (diff)
downloadlinux-7e3ea6d5c4f4880dbdf85f4083f40d8a3dc9b906.tar.xz
linux-7e3ea6d5c4f4880dbdf85f4083f40d8a3dc9b906.zip
sctp: avoid to repeatedly declare external variables
Move the declaration for external variables to sctp.h file avoiding to repeatedly declare them with extern keyword. Signed-off-by: Ying Xue <ying.xue@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/socket.c')
-rw-r--r--net/sctp/socket.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/net/sctp/socket.c b/net/sctp/socket.c
index f1a65398f311..f09de7fac2e6 100644
--- a/net/sctp/socket.c
+++ b/net/sctp/socket.c
@@ -102,11 +102,6 @@ static int sctp_autobind(struct sock *sk);
static void sctp_sock_migrate(struct sock *, struct sock *,
struct sctp_association *, sctp_socket_type_t);
-extern struct kmem_cache *sctp_bucket_cachep;
-extern long sysctl_sctp_mem[3];
-extern int sysctl_sctp_rmem[3];
-extern int sysctl_sctp_wmem[3];
-
static int sctp_memory_pressure;
static atomic_long_t sctp_memory_allocated;
struct percpu_counter sctp_sockets_allocated;