l2tp: define parameters of l2tp_session_get*() as "const"
authorGuillaume Nault <g.nault@alphalink.fr>
Wed, 12 Apr 2017 08:05:29 +0000 (10:05 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 11 Nov 2017 13:34:34 +0000 (13:34 +0000)
commit9b8a799108b6060bc96d5ad6e35789d4bcbe7969
treec7fc82b9c1a1da52abe761e571945198a02e6a44
parent81beca86edb32fbf5cec019d522889b765539639
l2tp: define parameters of l2tp_session_get*() as "const"

commit 9aaef50c44f132e040dcd7686c8e78a3390037c5 upstream.

Make l2tp_pernet()'s parameter constant, so that l2tp_session_get*() can
declare their "net" variable as "const".
Also constify "ifname" in l2tp_session_get_by_ifname().

Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/l2tp/l2tp_core.c
net/l2tp/l2tp_core.h