make struct ipv4_devconf static
Subsystems (3)
PATCH 1/1 make struct ipv4_devconf static
struct ipv4_devconf can now become static.
Signed-off-by Adrian Bunk <[email protected]>
---
include/linux/inetdevice.h | 2 -- net/ipv4/devinet.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-)
20262a3317069b1bdbf2b37f4002fa5322445914
include/linux/inetdevice.h +0 -2
@@ -17,8 +17,6 @@ struct ipv4_devconfDECLARE_BITMAP (state, __NET_IPV4_CONF_MAX -1 ); }; -extern struct ipv4_devconf ipv4_devconf; -struct in_device {struct net_device *dev;
net/ipv4/devinet.c +1 -1
@@ -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 ,
Quoted 3 lines · Adrian Bunk
struct
ipv4_devconfcan now become static.Signed-off-by Adrian Bunk <[email protected]>
Acked-by Pavel Emelyanov <[email protected]>
Quoted 35 lines
---
include/linux/inetdevice.h | 2 -- net/ipv4/devinet.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-)
20262a3317069b1bdbf2b37f4002fa5322445914include/linux/inetdevice.h +0
-2@@ -17,8 +17,6 @@ struct ipv4_devconfDECLARE_BITMAP (state, __NET_IPV4_CONF_MAX -1 ); }; -extern struct ipv4_devconf ipv4_devconf; -struct in_device {struct net_device *dev;net/ipv4/devinet.c +1
-1@@ -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 ,