aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kobject_uevent.c
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2008-03-27 17:26:30 -0400
committerDavid S. Miller <davem@davemloft.net>2008-03-27 17:26:30 -0400
commit2d38f9a4f8d2ebdc799f03eecf82345825495711 (patch)
tree66956fb35cf53e9d6c15a28248ab0434a8af7277 /lib/kobject_uevent.c
parent0e5f8be1388093edc324a78ebf241170b258eba3 (diff)
[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/kobject_uevent.c')
-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 5a402e2982af..0d56dad319ad 100644
--- a/lib/kobject_uevent.c
+++ b/lib/kobject_uevent.c
@@ -15,12 +15,16 @@
15 */ 15 */
16 16
17#include <linux/spinlock.h> 17#include <linux/spinlock.h>
18#include <linux/string.h>
19#include <linux/kobject.h>
20#include <linux/module.h>
21
22#ifdef CONFIG_NET
18#include <linux/socket.h> 23#include <linux/socket.h>
19#include <linux/skbuff.h> 24#include <linux/skbuff.h>
20#include <linux/netlink.h> 25#include <linux/netlink.h>
21#include <linux/string.h>
22#include <linux/kobject.h>
23#include <net/sock.h> 26#include <net/sock.h>
27#endif
24 28
25 29
26u64 uevent_seqnum; 30u64 uevent_seqnum;