diff options
author | David S. Miller <davem@davemloft.net> | 2011-02-24 00:02:38 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-24 02:07:37 -0500 |
commit | 214e005bc32c7045b8554f9f0fb07b3fcce2cd42 (patch) | |
tree | 19549e83718646b6ec942f9c4aaf8ce5645cb0d0 /net/xfrm/xfrm_state.c | |
parent | 55ae22d08fc9b531bc8a88b7306004e7053bb425 (diff) |
xfrm: Pass km_event pointers around as const when possible.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/xfrm/xfrm_state.c')
-rw-r--r-- | net/xfrm/xfrm_state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index 30a0f178819c..7028f063f093 100644 --- a/net/xfrm/xfrm_state.c +++ b/net/xfrm/xfrm_state.c | |||
@@ -1727,7 +1727,7 @@ void xfrm_replay_advance(struct xfrm_state *x, __be32 net_seq) | |||
1727 | static LIST_HEAD(xfrm_km_list); | 1727 | static LIST_HEAD(xfrm_km_list); |
1728 | static DEFINE_RWLOCK(xfrm_km_lock); | 1728 | static DEFINE_RWLOCK(xfrm_km_lock); |
1729 | 1729 | ||
1730 | void km_policy_notify(struct xfrm_policy *xp, int dir, struct km_event *c) | 1730 | void km_policy_notify(struct xfrm_policy *xp, int dir, const struct km_event *c) |
1731 | { | 1731 | { |
1732 | struct xfrm_mgr *km; | 1732 | struct xfrm_mgr *km; |
1733 | 1733 | ||
@@ -1738,7 +1738,7 @@ void km_policy_notify(struct xfrm_policy *xp, int dir, struct km_event *c) | |||
1738 | read_unlock(&xfrm_km_lock); | 1738 | read_unlock(&xfrm_km_lock); |
1739 | } | 1739 | } |
1740 | 1740 | ||
1741 | void km_state_notify(struct xfrm_state *x, struct km_event *c) | 1741 | void km_state_notify(struct xfrm_state *x, const struct km_event *c) |
1742 | { | 1742 | { |
1743 | struct xfrm_mgr *km; | 1743 | struct xfrm_mgr *km; |
1744 | read_lock(&xfrm_km_lock); | 1744 | read_lock(&xfrm_km_lock); |