]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[IPV4]: Make struct ipv4_devconf static.
authorAdrian Bunk <bunk@kernel.org>
Fri, 1 Feb 2008 01:17:31 +0000 (17:17 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Feb 2008 03:28:31 +0000 (19:28 -0800)
struct ipv4_devconf can now become static.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Acked-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/inetdevice.h
net/ipv4/devinet.c

index 8d9eaaebded7e753c6a79af7fb03064fea39cd90..fc4e3db649e895eaa4d82d1f37af40170166100a 100644 (file)
@@ -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;
index 21f71bf912d5b1621ec81fc4807dcde7f7355166..5ab5acc17e441cd3db6cafc6eade89fa3b59b671 100644 (file)
@@ -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,