xfrm: Const'ify ptr args to xfrm_state_ok.
authorDavid S. Miller <davem@davemloft.net>
Thu, 24 Feb 2011 06:43:01 +0000 (01:43 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Feb 2011 07:07:46 +0000 (23:07 -0800)
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_policy.c

index 3a4221a71b098fee51ad7ce103786469dee9c782..f766e5fb718f8d5e7d05be5ed79ece893c5730eb 100644 (file)
@@ -1933,7 +1933,7 @@ xfrm_secpath_reject(int idx, struct sk_buff *skb, const struct flowi *fl)
  */
 
 static inline int
-xfrm_state_ok(struct xfrm_tmpl *tmpl, struct xfrm_state *x,
+xfrm_state_ok(const struct xfrm_tmpl *tmpl, const struct xfrm_state *x,
              unsigned short family)
 {
        if (xfrm_state_kern(x))