diff options
author | Ying Xue <ying.xue@windriver.com> | 2014-01-07 21:26:39 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-07 22:45:26 -0500 |
commit | da7c224b1baaeb7543dc7663ae78716f9a6864c1 (patch) | |
tree | 109b08aa0e4ccc99f4861b7cad4a934f497f6a3a /net/xfrm/xfrm_policy.c | |
parent | 8752b5caed54baa36c056b5c279ccdcf2805b9f6 (diff) |
net: xfrm: xfrm_policy: silence compiler warning
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>
Diffstat (limited to 'net/xfrm/xfrm_policy.c')
-rw-r--r-- | net/xfrm/xfrm_policy.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c index b39044631b0c..e205c4b56afb 100644 --- a/net/xfrm/xfrm_policy.c +++ b/net/xfrm/xfrm_policy.c | |||
@@ -1641,6 +1641,7 @@ free_dst: | |||
1641 | goto out; | 1641 | goto out; |
1642 | } | 1642 | } |
1643 | 1643 | ||
1644 | #ifdef CONFIG_XFRM_SUB_POLICY | ||
1644 | static int xfrm_dst_alloc_copy(void **target, const void *src, int size) | 1645 | static int xfrm_dst_alloc_copy(void **target, const void *src, int size) |
1645 | { | 1646 | { |
1646 | if (!*target) { | 1647 | if (!*target) { |
@@ -1652,6 +1653,7 @@ static int xfrm_dst_alloc_copy(void **target, const void *src, int size) | |||
1652 | memcpy(*target, src, size); | 1653 | memcpy(*target, src, size); |
1653 | return 0; | 1654 | return 0; |
1654 | } | 1655 | } |
1656 | #endif | ||
1655 | 1657 | ||
1656 | static int xfrm_dst_update_parent(struct dst_entry *dst, | 1658 | static int xfrm_dst_update_parent(struct dst_entry *dst, |
1657 | const struct xfrm_selector *sel) | 1659 | const struct xfrm_selector *sel) |