From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Emelyanov Subject: Re: [2.6 patch] make struct ipv4_devconf static Date: Thu, 31 Jan 2008 13:37:40 +0300 Message-ID: <47A1A4F4.2050906@openvz.org> References: <20080130200254.GC29368@does.not.exist> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: Adrian Bunk Return-path: Received: from sacred.ru ([62.205.161.221]:45051 "EHLO sacred.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1763872AbYAaKhu (ORCPT ); Thu, 31 Jan 2008 05:37:50 -0500 In-Reply-To: <20080130200254.GC29368@does.not.exist> Sender: netdev-owner@vger.kernel.org List-ID: Adrian Bunk wrote: > struct ipv4_devconf can now become static. > > Signed-off-by: Adrian Bunk Acked-by: Pavel Emelyanov > --- > > include/linux/inetdevice.h | 2 -- > net/ipv4/devinet.c | 2 +- > 2 files changed, 1 insertion(+), 3 deletions(-) > > 20262a3317069b1bdbf2b37f4002fa5322445914 > diff --git a/include/linux/inetdevice.h b/include/linux/inetdevice.h > index 8d9eaae..fc4e3db 100644 > --- a/include/linux/inetdevice.h > +++ b/include/linux/inetdevice.h > @@ -17,8 +17,6 @@ struct ipv4_devconf > DECLARE_BITMAP(state, __NET_IPV4_CONF_MAX - 1); > }; > > -extern struct ipv4_devconf ipv4_devconf; > - > struct in_device > { > struct net_device *dev; > diff --git a/net/ipv4/devinet.c b/net/ipv4/devinet.c > index 21f71bf..5ab5acc 100644 > --- a/net/ipv4/devinet.c > +++ b/net/ipv4/devinet.c > @@ -64,7 +64,7 @@ > #include > #include > > -struct ipv4_devconf ipv4_devconf = { > +static struct ipv4_devconf ipv4_devconf = { > .data = { > [NET_IPV4_CONF_ACCEPT_REDIRECTS - 1] = 1, > [NET_IPV4_CONF_SEND_REDIRECTS - 1] = 1, > >