[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1389147999-15944-1-git-send-email-ying.xue@windriver.com>
Date: Wed, 8 Jan 2014 10:26:39 +0800
From: Ying Xue <ying.xue@...driver.com>
To: <steffen.klassert@...unet.com>, <davem@...emloft.net>
CC: <dborkman@...hat.com>, <netdev@...r.kernel.org>
Subject: [PATCH net-next] 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@...driver.com>
---
net/xfrm/xfrm_policy.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c
index b390446..e205c4b 100644
--- a/net/xfrm/xfrm_policy.c
+++ b/net/xfrm/xfrm_policy.c
@@ -1641,6 +1641,7 @@ free_dst:
goto out;
}
+#ifdef CONFIG_XFRM_SUB_POLICY
static int xfrm_dst_alloc_copy(void **target, const void *src, int size)
{
if (!*target) {
@@ -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)
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists