]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
xfrm: Const'ify policy arg to clone_policy.
authorDavid S. Miller <davem@davemloft.net>
Thu, 24 Feb 2011 06:25:41 +0000 (01:25 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Feb 2011 07:07:44 +0000 (23:07 -0800)
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_policy.c

index 9f6c7a754772b34fc08ea616b03980c55af3d1ea..f1f90af4a03608f9dede2064cfefcccb5aea398c 100644 (file)
@@ -1105,7 +1105,7 @@ int xfrm_sk_policy_insert(struct sock *sk, int dir, struct xfrm_policy *pol)
        return 0;
 }
 
-static struct xfrm_policy *clone_policy(struct xfrm_policy *old, int dir)
+static struct xfrm_policy *clone_policy(const struct xfrm_policy *old, int dir)
 {
        struct xfrm_policy *newp = xfrm_policy_alloc(xp_net(old), GFP_ATOMIC);