commit | 63eb23f5d80d7158fa575aaca240cb8497e2c06f | [log] [tgz] |
---|---|---|
author | David S. Miller <davem@davemloft.net> | Thu Feb 24 01:25:19 2011 -0500 |
committer | David S. Miller <davem@davemloft.net> | Wed Feb 23 23:07:44 2011 -0800 |
tree | a140e16c39b25184292de5bc2dd5a490292ea72a | |
parent | f299d557cb7fca4219020b19dab28ed26738c3ee [diff] [blame] |
xfrm: Const'ify policy arg to xp_net. Signed-off-by: David S. Miller <davem@davemloft.net>
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index 1806c91..5402a1e 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h
@@ -506,7 +506,7 @@ 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); }