[-mm patch] net/sctp/socket.c: make 3 variables static

Subsystems: networking [general], sctp protocol, the rest

STALE6872d

3 messages, 3 authors, 2007-09-12 · open the first message on its own page

[-mm patch] net/sctp/socket.c: make 3 variables static

From: Adrian Bunk <bunk@kernel.org>
Date: 2007-09-09 20:30:55

On Fri, Aug 31, 2007 at 09:58:22PM -0700, Andrew Morton wrote:
...
Changes since 2.6.23-rc3-mm1:
...
 git-net.patch
...
 git trees
...
This patch makes the following needlessly globalvariables static:
- sctp_memory_pressure
- sctp_memory_allocated
- sctp_sockets_allocated

Signed-off-by: Adrian Bunk <bunk@kernel.org>

---
3c211ad074038414ebc156b1abbc3df78dc60cb2 
diff --git a/net/sctp/socket.c b/net/sctp/socket.c
index 37e7306..f53545a 100644
--- a/net/sctp/socket.c
+++ b/net/sctp/socket.c
@@ -112,9 +112,9 @@ extern int sysctl_sctp_mem[3];
 extern int sysctl_sctp_rmem[3];
 extern int sysctl_sctp_wmem[3];
 
-int sctp_memory_pressure;
-atomic_t sctp_memory_allocated;
-atomic_t sctp_sockets_allocated;
+static int sctp_memory_pressure;
+static atomic_t sctp_memory_allocated;
+static atomic_t sctp_sockets_allocated;
 
 static void sctp_enter_memory_pressure(void)
 {

Re: [Lksctp-developers] [-mm patch] net/sctp/socket.c: make 3 variables static

From: Neil Horman <nhorman@tuxdriver.com>
Date: 2007-09-10 14:07:52

On Sun, Sep 09, 2007 at 10:25:54PM +0200, Adrian Bunk wrote:
On Fri, Aug 31, 2007 at 09:58:22PM -0700, Andrew Morton wrote:
quoted
...
Changes since 2.6.23-rc3-mm1:
...
 git-net.patch
...
 git trees
...
This patch makes the following needlessly globalvariables static:
- sctp_memory_pressure
- sctp_memory_allocated
- sctp_sockets_allocated

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Looks fine to me
Acked-by: Neil Horman <nhorman@tuxdriver.com>

Neil

-- 
/***************************************************
 *Neil Horman
 *nhorman@tuxdriver.com
 *gpg keyid: 1024D / 0x92A74FA1
 *http://pgp.mit.edu
 ***************************************************/

Re: [-mm patch] net/sctp/socket.c: make 3 variables static

From: David Miller <davem@davemloft.net>
Date: 2007-09-12 13:19:20

From: Adrian Bunk <bunk@kernel.org>
Date: Sun, 9 Sep 2007 22:25:54 +0200
This patch makes the following needlessly globalvariables static:
- sctp_memory_pressure
- sctp_memory_allocated
- sctp_sockets_allocated

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Applied, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help