All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [MPTCP] [PATCH] Squash-to: "mptcp: add MPTCP socket diag interface"
@ 2020-07-07 17:13 Paolo Abeni
  0 siblings, 0 replies; only message in thread
From: Paolo Abeni @ 2020-07-07 17:13 UTC (permalink / raw
  To: mptcp 

[-- Attachment #1: Type: text/plain, Size: 1314 bytes --]

Davide reported build issues when compiling without
CONFIG_MPTCP_KUNIT_TESTS. We need to always export
mptcp_token_get_sock(), for diag's sake.

The following text should be inserted into the squash to
commit:
"""
Additionally export mptcp_token_get_sock(), as it
also will be used by the diag module.
"""

just before:
"""
It will be used by the next patch, but keep the API generic,
as we plan to use this later for PM's sake.
"""

Signed-off-by: Paolo Abeni <pabeni(a)redhat.com>
---
 net/mptcp/token.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/mptcp/token.c b/net/mptcp/token.c
index 6d4fe70f7d30..7d8106026081 100644
--- a/net/mptcp/token.c
+++ b/net/mptcp/token.c
@@ -238,6 +238,7 @@ struct mptcp_sock *mptcp_token_get_sock(u32 token)
 	rcu_read_unlock();
 	return msk;
 }
+EXPORT_SYMBOL_GPL(mptcp_token_get_sock);
 
 /**
  * mptcp_token_iter_next - iterate over the token container from given pos
@@ -371,7 +372,6 @@ void __init mptcp_token_init(void)
 EXPORT_SYMBOL_GPL(mptcp_token_new_request);
 EXPORT_SYMBOL_GPL(mptcp_token_new_connect);
 EXPORT_SYMBOL_GPL(mptcp_token_accept);
-EXPORT_SYMBOL_GPL(mptcp_token_get_sock);
 EXPORT_SYMBOL_GPL(mptcp_token_destroy_request);
 EXPORT_SYMBOL_GPL(mptcp_token_destroy);
 #endif
-- 
2.18.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-07 17:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-07 17:13 [MPTCP] [PATCH] Squash-to: "mptcp: add MPTCP socket diag interface" Paolo Abeni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.