Skip to content
/ linux Public
forked from torvalds/linux

Commit

Permalink
mptcp: move mptcp_pm_gen.h's include
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
matttbe authored and kuba-moo committed May 14, 2024
1 parent 00797af commit 76a8668
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions net/mptcp/pm_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#include "protocol.h"
#include "mib.h"
#include "mptcp_pm_gen.h"

static int pm_nl_pernet_id;

Expand Down
1 change: 1 addition & 0 deletions net/mptcp/pm_userspace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 0 additions & 2 deletions net/mptcp/protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 76a8668

Please sign in to comment.