DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] vhost/crypto: fix failed compile
@ 2022-05-19 16:07 Fan Zhang
  0 siblings, 0 replies; only message in thread
From: Fan Zhang @ 2022-05-19 16:07 UTC (permalink / raw)
  To: dev; +Cc: daxuex.gao, maxime.coquelin, Fan Zhang

Fixes: 3c79609fda7c ("vhost/crypto: handle virtually non-contiguous buffers")
Cc: roy.fan.zhang@intel.com

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.

Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
---
 lib/vhost/vhost_crypto.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/vhost/vhost_crypto.c b/lib/vhost/vhost_crypto.c
index b1c0eb6a0f..278f990280 100644
--- a/lib/vhost/vhost_crypto.c
+++ b/lib/vhost/vhost_crypto.c
@@ -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)) {
-- 
2.34.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-19 16:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-19 16:07 [PATCH] vhost/crypto: fix failed compile Fan Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).