Commit 73ff93cd0249e822c4fee367e1fd4ad4a45a5515

Authored by David S. Miller
1 parent 062cdb43b8

xfrm: Mark flowi arg to xfrm_expand_policies() const.

Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

net/xfrm/xfrm_policy.c
... ... @@ -941,7 +941,7 @@
941 941 }
942 942  
943 943 static struct xfrm_policy *
944   -__xfrm_policy_lookup(struct net *net, struct flowi *fl, u16 family, u8 dir)
  944 +__xfrm_policy_lookup(struct net *net, const struct flowi *fl, u16 family, u8 dir)
945 945 {
946 946 #ifdef CONFIG_XFRM_SUB_POLICY
947 947 struct xfrm_policy *pol;
... ... @@ -1542,7 +1542,7 @@
1542 1542 #endif
1543 1543 }
1544 1544  
1545   -static int xfrm_expand_policies(struct flowi *fl, u16 family,
  1545 +static int xfrm_expand_policies(const struct flowi *fl, u16 family,
1546 1546 struct xfrm_policy **pols,
1547 1547 int *num_pols, int *num_xfrms)
1548 1548 {