]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
mptcp: move mptcp_pm_gen.h's include
authorMatthieu Baerts (NGI0) <matttbe@kernel.org>
Tue, 14 May 2024 01:13:31 +0000 (18:13 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 14 May 2024 01:29:23 +0000 (18:29 -0700)
Nothing from protocol.h depends on mptcp_pm_gen.h, only code from
pm_netlink.c and pm_userspace.c depends on it.

So this include can be moved where it is needed to avoid a "unused
includes" warning.

Reviewed-by: Geliang Tang <geliang@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Mat Martineau <martineau@kernel.org>
Link: https://lore.kernel.org/r/20240514011335.176158-8-martineau@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/pm_netlink.c
net/mptcp/pm_userspace.c
net/mptcp/protocol.h

index 5c17d39146ea23d8a82121c66f23c5adbbe9785f..7f53e022e27ece7e041f2a4c5d49195a59ea722b 100644 (file)
@@ -14,6 +14,7 @@
 
 #include "protocol.h"
 #include "mib.h"
+#include "mptcp_pm_gen.h"
 
 static int pm_nl_pernet_id;
 
index 9f5d422d5ef6c129d5483cedd5bfcc0793f65f24..f0a4590506c69a13123ecc041ce1724bc36d95e2 100644 (file)
@@ -6,6 +6,7 @@
 
 #include "protocol.h"
 #include "mib.h"
+#include "mptcp_pm_gen.h"
 
 void mptcp_free_local_addr_list(struct mptcp_sock *msk)
 {
index 39fc47e6b88ad0723a1bf7ad71b2c86b264cebfe..7aa47e2dd52b158f022da0aa2747713a811ac596 100644 (file)
@@ -14,8 +14,6 @@
 #include <net/genetlink.h>
 #include <net/rstreason.h>
 
-#include "mptcp_pm_gen.h"
-
 #define MPTCP_SUPPORTED_VERSION        1
 
 /* MPTCP option bits */