aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2021-11-28 10:21:12 +0100
committerIngo Molnar <mingo@kernel.org>2022-03-15 12:57:34 +0100
commitdd7ce61d2e9ade59ee4c370927971054e676bd04 (patch)
tree420b555ba7e9f94774d61f95b8fd71ee6c73ccbd
parentb17a0ea3c57f4faec3c9bca05986ae17fc809999 (diff)
downloadtip-dd7ce61d2e9ade59ee4c370927971054e676bd04.tar.gz
headers/deps: net: Optimize <net/ip.h> dependencies, remove <net/dst_api.h> inclusion
-------------------------------------------------------------------- | Combined, preprocessed C code size of header, without line markers, | with comments stripped: ------------------------- before: | #include <net/ip.h> | LOC: 21,003 | headers: 398 after: | #include <net/ip.h> | LOC: 20,186 | headers: 391 Fix up dangling dependencies. Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r--include/net/ip.h1
-rw-r--r--include/net/ip_extra.h2
2 files changed, 1 insertions, 2 deletions
diff --git a/include/net/ip.h b/include/net/ip.h
index 6006ce101da0ee..ee847660ce4171 100644
--- a/include/net/ip.h
+++ b/include/net/ip.h
@@ -18,7 +18,6 @@
#ifndef _IP_H
#define _IP_H
-#include <net/dst_api.h>
#include <net/checksum.h>
#include <linux/skbuff_api.h>
#include <linux/cpumask_api.h>
diff --git a/include/net/ip_extra.h b/include/net/ip_extra.h
index 80a1c6dfbef2bd..f6abd971891f94 100644
--- a/include/net/ip_extra.h
+++ b/include/net/ip_extra.h
@@ -5,7 +5,7 @@
#include <net/ip.h>
#ifdef CONFIG_INET
-#include <net/dst.h>
+#include <net/dst_api.h>
/* The function in 2.2 was invalid, producing wrong result for
* check=0xFEFF. It was noticed by Arthur Skawina _year_ ago. --ANK(000625) */