lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sun, 9 Sep 2007 22:25:54 +0200 From: Adrian Bunk <bunk@...nel.org> To: Andrew Morton <akpm@...ux-foundation.org>, vladislav.yasevich@...com, sri@...ibm.com, davem@...emloft.net Cc: linux-kernel@...r.kernel.org, lksctp-developers@...ts.sourceforge.net, netdev@...r.kernel.org Subject: [-mm patch] net/sctp/socket.c: make 3 variables static 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@...nel.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) { - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists