Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[NET]: netns compilation speedup

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>

authored by

Denis V. Lunev and committed by
David S. Miller
0eeb8ffc 6ac552fd

+3 -2
+2 -1
include/net/pkt_cls.h
··· 2 2 #define __NET_PKT_CLS_H 3 3 4 4 #include <linux/pkt_cls.h> 5 - #include <net/net_namespace.h> 6 5 #include <net/sch_generic.h> 7 6 #include <net/act_api.h> 8 7 ··· 335 336 } 336 337 337 338 #ifdef CONFIG_NET_CLS_IND 339 + #include <net/net_namespace.h> 340 + 338 341 static inline int 339 342 tcf_change_indev(struct tcf_proto *tp, char *indev, struct rtattr *indev_tlv) 340 343 {
+1 -1
include/net/sock.h
··· 57 57 #include <asm/atomic.h> 58 58 #include <net/dst.h> 59 59 #include <net/checksum.h> 60 - #include <net/net_namespace.h> 61 60 62 61 /* 63 62 * This structure really needs to be cleaned up. ··· 94 95 95 96 struct sock; 96 97 struct proto; 98 + struct net; 97 99 98 100 /** 99 101 * struct sock_common - minimal network layer representation of sockets