xfrm: Const'ify policy arg to xp_net.
Subsystems (3)
David Miller
maintainerPATCH 14/26 xfrm: Const'ify policy arg to xp_net.
Signed-off-by David S. Miller <[email protected]>
--- include/net/xfrm.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
include/net/xfrm.h +1 -1
@@ -506,7 +506,7 @@ struct xfrm_policy {struct xfrm_tmpl xfrm_vec[XFRM_MAX_DEPTH ]; }; -static inline struct net *xp_net (struct xfrm_policy *xp) +static inline struct net *xp_net (const struct xfrm_policy *xp) {return read_pnet (&xp->xp_net); }
Signature · 1 line
1.7.4.1