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  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Thu, 31 Jan 2008 13:37:40 +0300
From:	Pavel Emelyanov <xemul@...nvz.org>
To:	Adrian Bunk <bunk@...nel.org>
CC:	"David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: Re: [2.6 patch] make struct ipv4_devconf static

Adrian Bunk wrote:
> struct ipv4_devconf can now become static.
> 
> Signed-off-by: Adrian Bunk <bunk@...nel.org>

Acked-by: Pavel Emelyanov <xemul@...nvz.org>

> ---
> 
>  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 <net/rtnetlink.h>
>  #include <net/net_namespace.h>
>  
> -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,
> 
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ