Skip to content

Commit

Permalink
[NETNS]: Do no include NET related headers if CONFIG_NET is not set.
Browse files Browse the repository at this point in the history
This fix broken compilation for 'allnoconfig'. This was introduced by
Introduced by commit 1218854 ("[NET]
NETNS: Omit seq_net_private->net without CONFIG_NET_NS.")

Signed-off-by: Denis V. Lunev <[email protected]>
Acked-by: YOSHIFUJI Hideaki <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Denis V. Lunev authored and davem330 committed Mar 27, 2008
1 parent 0e5f8be commit 2d38f9a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/kobject_uevent.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2d38f9a

Please sign in to comment.