Skip to content

Commit

Permalink
[IPV4]: Make struct ipv4_devconf static.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Bunk authored and David S. Miller committed Feb 1, 2008
1 parent 81a21eb commit 0027ba8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions include/linux/inetdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion net/ipv4/devinet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0027ba8

Please sign in to comment.