aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2021-08-25 14:46:23 +0200
committerIngo Molnar <mingo@kernel.org>2022-03-15 12:57:28 +0100
commit3e2c30d851f6d19ae8566a9813925df4dd57c51b (patch)
tree172c362de6c542eb20da5056528d5bce2dd118be
parent1a3576736adbf817d6c6aa92ba12044bb6760c19 (diff)
downloadtip-3e2c30d851f6d19ae8566a9813925df4dd57c51b.tar.gz
headers/deps: net: Optimize <net/dst_api.h> dependencies, remove various headers
-------------------------------------------------------------------- | Combined, preprocessed C code size of header, without line markers, | with comments stripped: ------------------------- before: | #include <net/dst_api.h> | LOC: 18,092 | headers: 367 after: | #include <net/dst_api.h> | LOC: 16,492 | headers: 317 Fix up dangling dependencies. Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r--include/net/dst_api.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/include/net/dst_api.h b/include/net/dst_api.h
index 3ac6ea30b2edc0..bd3acf3286d416 100644
--- a/include/net/dst_api.h
+++ b/include/net/dst_api.h
@@ -9,22 +9,20 @@
#ifndef _NET_DST_API_H
#define _NET_DST_API_H
-#include <linux/string.h>
#include <net/dst_types.h>
-
#include <net/dst_ops.h>
+
+#include <linux/err.h>
+#include <linux/string.h>
#include <linux/netdevice.h>
-#include <linux/rtnetlink.h>
-#include <linux/rcupdate.h>
-#include <linux/bug.h>
-#include <linux/jiffies.h>
-#include <linux/refcount.h>
-#include <net/neighbour.h>
-#include <net/net_namespace.h>
-#include <asm/processor.h>
+#include <linux/refcount_types.h>
#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 {
u32 metrics[RTAX_MAX];
refcount_t refcnt;