Commit 63eb23f5 authored by David S. Miller's avatar David S. Miller

xfrm: Const'ify policy arg to xp_net.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f299d557
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment