From: Jakub Kicinski <kuba@kernel.org>
To: davem@davemloft.net
Cc: netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com,
Jakub Kicinski <kuba@kernel.org>
Subject: [PATCH net-next 11/11] net: remove unnecessary includes from net/flow.h
Date: Wed, 25 Jan 2023 23:14:24 -0800 [thread overview]
Message-ID: <20230126071424.1250056-12-kuba@kernel.org> (raw)
In-Reply-To: <20230126071424.1250056-1-kuba@kernel.org>
This file is included by a lot of other commonly included
headers, it doesn't need socket.h or flow_dissector.h.
This reduces the size of this file after pre-processing
from 28165 to 4663.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
---
include/net/flow.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/include/net/flow.h b/include/net/flow.h
index 2f0da4f0318b..bb8651a6eaa7 100644
--- a/include/net/flow.h
+++ b/include/net/flow.h
@@ -8,12 +8,13 @@
#ifndef _NET_FLOW_H
#define _NET_FLOW_H
-#include <linux/socket.h>
#include <linux/in6.h>
#include <linux/atomic.h>
-#include <net/flow_dissector.h>
+#include <linux/container_of.h>
#include <linux/uidgid.h>
+struct flow_keys;
+
/*
* ifindex generation is per-net namespace, and loopback is
* always the 1st device in ns (see net_dev_init), thus any
--
2.39.1
next prev parent reply other threads:[~2023-01-26 7:14 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-26 7:14 [PATCH net-next 00/11] net: skbuff: clean up unnecessary includes Jakub Kicinski
2023-01-26 7:14 ` [PATCH net-next 01/11] net: add missing includes of linux/net.h Jakub Kicinski
2023-01-26 7:14 ` [PATCH net-next 02/11] net: skbuff: drop the linux/net.h include Jakub Kicinski
2023-01-26 7:14 ` [PATCH net-next 03/11] net: checksum: drop the linux/uaccess.h include Jakub Kicinski
2023-01-26 7:14 ` [PATCH net-next 04/11] net: skbuff: drop the linux/textsearch.h include Jakub Kicinski
2023-01-26 7:14 ` [PATCH net-next 05/11] net: add missing includes of linux/sched/clock.h Jakub Kicinski
2023-01-26 7:14 ` [PATCH net-next 06/11] net: skbuff: drop the linux/sched/clock.h include Jakub Kicinski
2023-01-26 7:14 ` [PATCH net-next 07/11] net: skbuff: drop the linux/sched.h include Jakub Kicinski
2023-01-26 7:14 ` [PATCH net-next 08/11] net: add missing includes of linux/splice.h Jakub Kicinski
2023-01-27 12:35 ` Wenjia Zhang
2023-01-26 7:14 ` [PATCH net-next 09/11] net: skbuff: drop the linux/splice.h include Jakub Kicinski
2023-01-26 7:14 ` [PATCH net-next 10/11] net: skbuff: drop the linux/hrtimer.h include Jakub Kicinski
2023-01-26 7:14 ` Jakub Kicinski [this message]
2023-01-27 12:10 ` [PATCH net-next 00/11] net: skbuff: clean up unnecessary includes patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230126071424.1250056-12-kuba@kernel.org \
--to=kuba@kernel.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).