diff options
author | Denis V. Lunev <den@openvz.org> | 2008-03-27 22:26:30 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-03-27 22:26:30 +0100 |
commit | 2d38f9a4f8d2ebdc799f03eecf82345825495711 (patch) | |
tree | 66956fb35cf53e9d6c15a28248ab0434a8af7277 /lib/kobject_uevent.c | |
parent | [NETNS]: Compile NET /proc support only if CONFIG_NET is set. (diff) | |
download | linux-2d38f9a4f8d2ebdc799f03eecf82345825495711.tar.xz linux-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/kobject_uevent.c')
-rw-r--r-- | lib/kobject_uevent.c | 8 |
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 @@ */ #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; |