summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2008-03-27 14:26:30 -0700
committerDavid S. Miller <davem@davemloft.net>2008-03-27 14:26:30 -0700
commit2d38f9a4f8d2ebdc799f03eecf82345825495711 (patch)
tree66956fb35cf53e9d6c15a28248ab0434a8af7277 /lib
parent0e5f8be1388093edc324a78ebf241170b258eba3 (diff)
downloadlinux-3.10-2d38f9a4f8d2ebdc799f03eecf82345825495711.tar.gz
linux-3.10-2d38f9a4f8d2ebdc799f03eecf82345825495711.tar.bz2
linux-3.10-2d38f9a4f8d2ebdc799f03eecf82345825495711.zip
[NETNS]: Do no include NET related headers if CONFIG_NET is not set.
This fix broken compilation for 'allnoconfig'. This was introduced by Introduced by commit 1218854afa6f659be90b748cf1bc7badee954a35 ("[NET] NETNS: Omit seq_net_private->net without CONFIG_NET_NS.") Signed-off-by: Denis V. Lunev <den@openvz.org> Acked-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/kobject_uevent.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c
index 5a402e2982a..0d56dad319a 100644
--- a/lib/kobject_uevent.c
+++ b/lib/kobject_uevent.c
@@ -15,12 +15,16 @@
*/
#include <linux/spinlock.h>
+#include <linux/string.h>
+#include <linux/kobject.h>
+#include <linux/module.h>
+
+#ifdef CONFIG_NET
#include <linux/socket.h>
#include <linux/skbuff.h>
#include <linux/netlink.h>
-#include <linux/string.h>
-#include <linux/kobject.h>
#include <net/sock.h>
+#endif
u64 uevent_seqnum;