aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2019-03-25 09:17:19 -0700
committerDavid S. Miller <davem@davemloft.net>2019-03-27 13:49:43 -0700
commit37f3c421e8f09eeee3b78991af4fe13c126616d9 (patch)
tree5d56adebac5e58f452beaa9258b39d2447e6ec17 /net/core
parentnet: dsa: mv88e6xxx: remove unneeded cmode initialization (diff)
downloadlinux-dev-37f3c421e8f09eeee3b78991af4fe13c126616d9.tar.xz
linux-dev-37f3c421e8f09eeee3b78991af4fe13c126616d9.zip
net/core: Document reuseport_add_sock() bind_inany argument
This patch avoids that the following warning is reported when building with W=1: warning: Function parameter or member 'bind_inany' not described in 'reuseport_add_sock' Cc: Martin KaFai Lau <kafai@fb.com> Fixes: 2dbb9b9e6df6 ("bpf: Introduce BPF_PROG_TYPE_SK_REUSEPORT") # v4.19. Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/sock_reuseport.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/core/sock_reuseport.c b/net/core/sock_reuseport.c
index d8fe3e549373..dc4aefdf2a08 100644
--- a/net/core/sock_reuseport.c
+++ b/net/core/sock_reuseport.c
@@ -144,6 +144,8 @@ static void reuseport_free_rcu(struct rcu_head *head)
* reuseport_add_sock - Add a socket to the reuseport group of another.
* @sk: New socket to add to the group.
* @sk2: Socket belonging to the existing reuseport group.
+ * @bind_inany: Whether or not the group is bound to a local INANY address.
+ *
* May return ENOMEM and not add socket to group under memory pressure.
*/
int reuseport_add_sock(struct sock *sk, struct sock *sk2, bool bind_inany)