x25: preserve const qualifier in [a]x25_sk()
authorEric Dumazet <edumazet@google.com>
Fri, 17 Mar 2023 15:55:37 +0000 (15:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 18 Mar 2023 12:23:34 +0000 (12:23 +0000)
commitc7154ca8e075cc456fe773879263b33ae307a59e
tree03299ad254607977d7fa595e83ea599da98798b2
parent407db475d505d5aa4c2352b80e429a02f5ccd1e4
x25: preserve const qualifier in [a]x25_sk()

We can change [a]x25_sk() to propagate their argument const qualifier,
thanks to container_of_const().

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ax25.h
include/net/x25.h