Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760127AbXIIUaz (ORCPT ); Sun, 9 Sep 2007 16:30:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758906AbXIIUZu (ORCPT ); Sun, 9 Sep 2007 16:25:50 -0400 Received: from mailout.stusta.mhn.de ([141.84.69.5]:60758 "EHLO mailhub.stusta.mhn.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1759451AbXIIUZr (ORCPT ); Sun, 9 Sep 2007 16:25:47 -0400 Date: Sun, 9 Sep 2007 22:25:54 +0200 From: Adrian Bunk To: Andrew Morton , vladislav.yasevich@hp.com, sri@us.ibm.com, davem@davemloft.net Cc: linux-kernel@vger.kernel.org, lksctp-developers@lists.sourceforge.net, netdev@vger.kernel.org Subject: [-mm patch] net/sctp/socket.c: make 3 variables static Message-ID: <20070909202554.GY3563@stusta.de> References: <20070831215822.26e1432b.akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20070831215822.26e1432b.akpm@linux-foundation.org> User-Agent: Mutt/1.5.16 (2007-06-11) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1130 Lines: 41 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 --- 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 linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/