From: David S. Miller Date: Thu, 24 Feb 2011 06:25:19 +0000 (-0500) Subject: xfrm: Const'ify policy arg to xp_net. X-Git-Tag: firefly_0821_release~7613^2~2196^2~260 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=63eb23f5d80d7158fa575aaca240cb8497e2c06f;p=firefly-linux-kernel-4.4.55.git xfrm: Const'ify policy arg to xp_net. Signed-off-by: David S. Miller --- diff --git a/include/net/xfrm.h b/include/net/xfrm.h index 1806c918a15a..5402a1e2c0de 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h @@ -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); }