sctp: preserve const qualifier in sctp_sk()
authorEric Dumazet <edumazet@google.com>
Fri, 2 Feb 2024 10:14:03 +0000 (10:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Feb 2024 11:08:06 +0000 (11:08 +0000)
commit89304f91bf8efe832557b00f034493420f16dbdb
tree1944185fe39e38c463ab8bbb8e2c0ba829d94f97
parentffabe98cb576097b77d404d39e8b3df03caa986a
sctp: preserve const qualifier in sctp_sk()

We can change sctp_sk() to propagate its argument const qualifier,
thanks to container_of_const().

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Cc: Xin Long <lucien.xin@gmail.com>
Acked-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/structs.h