Skip to content

Commit

Permalink
net: xfrm: xfrm_policy: silence compiler warning
Browse files Browse the repository at this point in the history
Fix below compiler warning:

net/xfrm/xfrm_policy.c:1644:12: warning: ‘xfrm_dst_alloc_copy’ defined but not used [-Wunused-function]

Signed-off-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
ying-xue authored and davem330 committed Jan 8, 2014
1 parent 8752b5c commit da7c224
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/xfrm/xfrm_policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -1641,6 +1641,7 @@ static struct dst_entry *xfrm_bundle_create(struct xfrm_policy *policy,
goto out;
}

#ifdef CONFIG_XFRM_SUB_POLICY
static int xfrm_dst_alloc_copy(void **target, const void *src, int size)
{
if (!*target) {
Expand All @@ -1652,6 +1653,7 @@ static int xfrm_dst_alloc_copy(void **target, const void *src, int size)
memcpy(*target, src, size);
return 0;
}
#endif

static int xfrm_dst_update_parent(struct dst_entry *dst,
const struct xfrm_selector *sel)
Expand Down

0 comments on commit da7c224

Please sign in to comment.