aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/netdevice.h4
-rw-r--r--include/net/net_namespace.h3
-rw-r--r--lib/kobject_uevent.c2
3 files changed, 2 insertions, 7 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index c36c76caf20b..8b17ed40dea2 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -741,7 +741,6 @@ struct net_device
741#define NETDEV_ALIGN 32 741#define NETDEV_ALIGN 32
742#define NETDEV_ALIGN_CONST (NETDEV_ALIGN - 1) 742#define NETDEV_ALIGN_CONST (NETDEV_ALIGN - 1)
743 743
744#ifdef CONFIG_NET
745/* 744/*
746 * Net namespace inlines 745 * Net namespace inlines
747 */ 746 */
@@ -762,7 +761,6 @@ void dev_net_set(struct net_device *dev, struct net *net)
762 dev->nd_net = net; 761 dev->nd_net = net;
763#endif 762#endif
764} 763}
765#endif
766 764
767/** 765/**
768 * netdev_priv - access network device private data 766 * netdev_priv - access network device private data
@@ -827,7 +825,6 @@ struct packet_type {
827extern rwlock_t dev_base_lock; /* Device list lock */ 825extern rwlock_t dev_base_lock; /* Device list lock */
828 826
829 827
830#ifdef CONFIG_NET
831#define for_each_netdev(net, d) \ 828#define for_each_netdev(net, d) \
832 list_for_each_entry(d, &(net)->dev_base_head, dev_list) 829 list_for_each_entry(d, &(net)->dev_base_head, dev_list)
833#define for_each_netdev_safe(net, d, n) \ 830#define for_each_netdev_safe(net, d, n) \
@@ -851,7 +848,6 @@ static inline struct net_device *first_net_device(struct net *net)
851 return list_empty(&net->dev_base_head) ? NULL : 848 return list_empty(&net->dev_base_head) ? NULL :
852 net_device_entry(net->dev_base_head.next); 849 net_device_entry(net->dev_base_head.next);
853} 850}
854#endif
855 851
856extern int netdev_boot_setup_check(struct net_device *dev); 852extern int netdev_boot_setup_check(struct net_device *dev);
857extern unsigned long netdev_boot_base(const char *prefix, int unit); 853extern unsigned long netdev_boot_base(const char *prefix, int unit);
diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h
index 6c9a48a46685..0ab62ed2fdef 100644
--- a/include/net/net_namespace.h
+++ b/include/net/net_namespace.h
@@ -60,11 +60,12 @@ struct net {
60}; 60};
61 61
62 62
63#ifdef CONFIG_NET
64#include <linux/seq_file_net.h> 63#include <linux/seq_file_net.h>
65 64
66/* Init's network namespace */ 65/* Init's network namespace */
67extern struct net init_net; 66extern struct net init_net;
67
68#ifdef CONFIG_NET
68#define INIT_NET_NS(net_ns) .net_ns = &init_net, 69#define INIT_NET_NS(net_ns) .net_ns = &init_net,
69 70
70extern struct net *copy_net_ns(unsigned long flags, struct net *net_ns); 71extern struct net *copy_net_ns(unsigned long flags, struct net *net_ns);
diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c
index 0d56dad319ad..b06185ed1895 100644
--- a/lib/kobject_uevent.c
+++ b/lib/kobject_uevent.c
@@ -19,12 +19,10 @@
19#include <linux/kobject.h> 19#include <linux/kobject.h>
20#include <linux/module.h> 20#include <linux/module.h>
21 21
22#ifdef CONFIG_NET
23#include <linux/socket.h> 22#include <linux/socket.h>
24#include <linux/skbuff.h> 23#include <linux/skbuff.h>
25#include <linux/netlink.h> 24#include <linux/netlink.h>
26#include <net/sock.h> 25#include <net/sock.h>
27#endif
28 26
29 27
30u64 uevent_seqnum; 28u64 uevent_seqnum;