Skip to content

Commit 76a8668

Browse files
matttbekuba-moo
authored andcommitted
mptcp: move mptcp_pm_gen.h's include
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>
1 parent 00797af commit 76a8668

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

net/mptcp/pm_netlink.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
#include "protocol.h"
1616
#include "mib.h"
17+
#include "mptcp_pm_gen.h"
1718

1819
static int pm_nl_pernet_id;
1920

net/mptcp/pm_userspace.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#include "protocol.h"
88
#include "mib.h"
9+
#include "mptcp_pm_gen.h"
910

1011
void mptcp_free_local_addr_list(struct mptcp_sock *msk)
1112
{

net/mptcp/protocol.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
#include <net/genetlink.h>
1515
#include <net/rstreason.h>
1616

17-
#include "mptcp_pm_gen.h"
18-
1917
#define MPTCP_SUPPORTED_VERSION 1
2018

2119
/* MPTCP option bits */

0 commit comments

Comments
 (0)