]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mptcp: drop duplicate header inclusions
authorGeliang Tang <tanggeliang@kylinos.cn>
Tue, 5 Mar 2024 11:04:30 +0000 (12:04 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 7 Mar 2024 04:24:10 +0000 (20:24 -0800)
The headers net/tcp.h, net/genetlink.h and uapi/linux/mptcp.h are included
in protocol.h already, no need to include them again directly. This patch
removes these duplicate header inclusions.

Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://lore.kernel.org/r/20240305-upstream-net-next-20240304-mptcp-misc-cleanup-v1-1-c436ba5e569b@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/diag.c
net/mptcp/mptcp_diag.c
net/mptcp/pm.c
net/mptcp/pm_netlink.c
net/mptcp/protocol.c
net/mptcp/subflow.c

index 7017dd60659dc7133318c1c82e3f429bea3a5d57..3ae46b545d2c2b7b7bf55ea9b101bcce798489f9 100644 (file)
@@ -10,7 +10,6 @@
 #include <linux/net.h>
 #include <linux/inet_diag.h>
 #include <net/netlink.h>
-#include <uapi/linux/mptcp.h>
 #include "protocol.h"
 
 static int subflow_get_info(struct sock *sk, struct sk_buff *skb)
index bd8ff5950c8d33766a0da971dc127f106feb8481..0566dd793810a58055d33548bcb5e511116eed61 100644 (file)
@@ -10,7 +10,6 @@
 #include <linux/net.h>
 #include <linux/inet_diag.h>
 #include <net/netlink.h>
-#include <uapi/linux/mptcp.h>
 #include "protocol.h"
 
 static int sk_diag_dump(struct sock *sk, struct sk_buff *skb,
index b4bdd92a564823f0f654d30a271a1404d8c86c87..28e5d514bf20825a18072a67a63ab2bd99c5dced 100644 (file)
@@ -6,7 +6,6 @@
 #define pr_fmt(fmt) "MPTCP: " fmt
 
 #include <linux/kernel.h>
-#include <net/tcp.h>
 #include <net/mptcp.h>
 #include "protocol.h"
 
index 16f8bd47f4b8f4dbefaac9f5d3d77d88923e2ae0..a900df9f173ddd1519199e04dc07da4eebedaf1b 100644 (file)
@@ -8,12 +8,9 @@
 
 #include <linux/inet.h>
 #include <linux/kernel.h>
-#include <net/tcp.h>
 #include <net/inet_common.h>
 #include <net/netns/generic.h>
 #include <net/mptcp.h>
-#include <net/genetlink.h>
-#include <uapi/linux/mptcp.h>
 
 #include "protocol.h"
 #include "mib.h"
index 99367c40de0d1672de0ff86e1fbe7a090da4f3f2..3a1967bc7bad63d5a8a628b3f3b868e3a27baaca 100644 (file)
@@ -15,7 +15,6 @@
 #include <net/inet_common.h>
 #include <net/inet_hashtables.h>
 #include <net/protocol.h>
-#include <net/tcp.h>
 #include <net/tcp_states.h>
 #if IS_ENABLED(CONFIG_MPTCP_IPV6)
 #include <net/transp_v6.h>
index 6403c56f2902e1302a6e331e0740c5c7e53c8f14..1626dd20c68f1f0d67fdb8e0a2fbd2c2d1e70662 100644 (file)
 #include <net/inet_common.h>
 #include <net/inet_hashtables.h>
 #include <net/protocol.h>
-#include <net/tcp.h>
 #if IS_ENABLED(CONFIG_MPTCP_IPV6)
 #include <net/ip6_route.h>
 #include <net/transp_v6.h>
 #endif
 #include <net/mptcp.h>
-#include <uapi/linux/mptcp.h>
 #include "protocol.h"
 #include "mib.h"