diff options
author | David S. Miller <davem@davemloft.net> | 2011-02-24 01:25:19 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-24 02:07:44 -0500 |
commit | 63eb23f5d80d7158fa575aaca240cb8497e2c06f (patch) | |
tree | a140e16c39b25184292de5bc2dd5a490292ea72a /include/net | |
parent | f299d557cb7fca4219020b19dab28ed26738c3ee (diff) |
xfrm: Const'ify policy arg to xp_net.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/xfrm.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
506 | struct xfrm_tmpl xfrm_vec[XFRM_MAX_DEPTH]; | 506 | struct xfrm_tmpl xfrm_vec[XFRM_MAX_DEPTH]; |
507 | }; | 507 | }; |
508 | 508 | ||
509 | static inline struct net *xp_net(struct xfrm_policy *xp) | 509 | static inline struct net *xp_net(const struct xfrm_policy *xp) |
510 | { | 510 | { |
511 | return read_pnet(&xp->xp_net); | 511 | return read_pnet(&xp->xp_net); |
512 | } | 512 | } |