Skip to contentSkip to conversation

vhost/crypto: fix failed compile

PATCH New Fan Zhang 1 participant 1 message May 19, 2022

lore
Share & tools
lore

Fan Zhang

author
#0 lore raw

PATCH 1/1 vhost/crypto: fix failed compile

Fixes 3c79609fda7c ("vhost/crypto: handle virtually non-contiguous buffers")

This patch fixes the vhost crypto compile file on GCC12. Ref. https://bugs.dpdk.org/show_bug.cgi?id=1011

The fix involves replacing rte_memcpy to memcpy.

---
 lib/vhost/vhost_crypto.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/vhost/vhost_crypto.c +1 -1
index b1c0eb6a0f..278f990280 100644
@@ -585,7 +585,7 @@ copy_data(void *dst_data, struct vhost_crypto_data_req *vc_req,
 	if (unlikely(!src || !dlen))
 		return -1;
 
-	rte_memcpy((uint8_t *)data, src, dlen);
+	memcpy((uint8_t *)data, src, dlen);
 	data += dlen;
 
 	if (unlikely(dlen < to_copy)) {
Signature · 1 line
2.34.1