aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2021-08-17 14:20:34 +0200
committerIngo Molnar <mingo@kernel.org>2022-03-15 12:57:28 +0100
commite0078ed51dbfaa55af2e9f53909be055f79f1058 (patch)
tree424f97507262436e1da6e90420dc68dfc7214c58
parentd765278cecca244b5617a41843864e68e9f1ba6f (diff)
downloadtip-e0078ed51dbfaa55af2e9f53909be055f79f1058.tar.gz
headers/deps: net: Optimize <net/dst_api.h> dependencies, remove <net/net_namespace_types.h> inclusion
-------------------------------------------------------------------- | Combined, preprocessed C code size of header, without line markers, | with comments stripped: ------------------------- before: | #include <net/dst_api.h> | LOC: 14,907 | headers: 299 after: | #include <net/dst_api.h> | LOC: 10,678 | headers: 219 Fix up dangling dependencies. Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r--include/net/dst_api.h4
-rw-r--r--include/net/dst_api_tunnel.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/include/net/dst_api.h b/include/net/dst_api.h
index 47d0104890064..7f925b062fb22 100644
--- a/include/net/dst_api.h
+++ b/include/net/dst_api.h
@@ -19,8 +19,6 @@
#include <linux/indirect_call_wrapper.h>
#include <linux/skbuff_api.h>
-#include <net/net_namespace_types.h>
-
#include <uapi/linux/rtnetlink.h>
struct dst_metrics {
@@ -280,6 +278,8 @@ static inline u32 dst_tclassid(const struct sk_buff *skb)
return 0;
}
+extern struct net init_net;
+
int dst_discard_out(struct net *net, struct sock *sk, struct sk_buff *skb);
static inline int dst_discard(struct sk_buff *skb)
{
diff --git a/include/net/dst_api_tunnel.h b/include/net/dst_api_tunnel.h
index 91cc8e67aa36c..8fbf16706b00d 100644
--- a/include/net/dst_api_tunnel.h
+++ b/include/net/dst_api_tunnel.h
@@ -11,6 +11,7 @@
#include <net/dst_api.h>
+#include <net/net_namespace_types.h>
#include <linux/netdevice_types.h>
/**