From: Eric Dumazet Date: Tue, 29 Sep 2015 14:42:46 +0000 (-0700) Subject: dccp: constify dccp_create_openreq_child() sock argument X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=54105f98f544ec5305bf1fad292ca454ad55ef67;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git dccp: constify dccp_create_openreq_child() sock argument socket no longer needs to be read/write Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- diff --git a/net/dccp/dccp.h b/net/dccp/dccp.h index 8ed1df2771bd..2409619b7043 100644 --- a/net/dccp/dccp.h +++ b/net/dccp/dccp.h @@ -270,7 +270,7 @@ int dccp_reqsk_init(struct request_sock *rq, struct dccp_sock const *dp, int dccp_v4_conn_request(struct sock *sk, struct sk_buff *skb); -struct sock *dccp_create_openreq_child(struct sock *sk, +struct sock *dccp_create_openreq_child(const struct sock *sk, const struct request_sock *req, const struct sk_buff *skb); diff --git a/net/dccp/minisocks.c b/net/dccp/minisocks.c index 9bfd0dc1e6cb..d10aace43672 100644 --- a/net/dccp/minisocks.c +++ b/net/dccp/minisocks.c @@ -72,7 +72,7 @@ void dccp_time_wait(struct sock *sk, int state, int timeo) dccp_done(sk); } -struct sock *dccp_create_openreq_child(struct sock *sk, +struct sock *dccp_create_openreq_child(const struct sock *sk, const struct request_sock *req, const struct sk_buff *skb) {