aboutsummaryrefslogtreecommitdiffstats
path: root/net/xfrm/xfrm_state.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-02-24 00:02:38 -0500
committerDavid S. Miller <davem@davemloft.net>2011-02-24 02:07:37 -0500
commit214e005bc32c7045b8554f9f0fb07b3fcce2cd42 (patch)
tree19549e83718646b6ec942f9c4aaf8ce5645cb0d0 /net/xfrm/xfrm_state.c
parent55ae22d08fc9b531bc8a88b7306004e7053bb425 (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.c4
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)
1727static LIST_HEAD(xfrm_km_list); 1727static LIST_HEAD(xfrm_km_list);
1728static DEFINE_RWLOCK(xfrm_km_lock); 1728static DEFINE_RWLOCK(xfrm_km_lock);
1729 1729
1730void km_policy_notify(struct xfrm_policy *xp, int dir, struct km_event *c) 1730void 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
1741void km_state_notify(struct xfrm_state *x, struct km_event *c) 1741void 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);