Skip to content

Commit

Permalink
[NET]: netns compilation speedup
Browse files Browse the repository at this point in the history
This patch speedups compilation when net_namespace.h is changed.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Denis V. Lunev authored and David S. Miller committed Jan 28, 2008
1 parent 6ac552f commit 0eeb8ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion include/net/pkt_cls.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#define __NET_PKT_CLS_H

#include <linux/pkt_cls.h>
#include <net/net_namespace.h>
#include <net/sch_generic.h>
#include <net/act_api.h>

Expand Down Expand Up @@ -336,6 +335,8 @@ static inline int tcf_valid_offset(const struct sk_buff *skb,
}

#ifdef CONFIG_NET_CLS_IND
#include <net/net_namespace.h>

static inline int
tcf_change_indev(struct tcf_proto *tp, char *indev, struct rtattr *indev_tlv)
{
Expand Down
2 changes: 1 addition & 1 deletion include/net/sock.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
#include <asm/atomic.h>
#include <net/dst.h>
#include <net/checksum.h>
#include <net/net_namespace.h>

/*
* This structure really needs to be cleaned up.
Expand Down Expand Up @@ -95,6 +94,7 @@ typedef struct {

struct sock;
struct proto;
struct net;

/**
* struct sock_common - minimal network layer representation of sockets
Expand Down

0 comments on commit 0eeb8ff

Please sign in to comment.