RE: [PATCH] crypto/openssl: fix warning on copy length

2023-01-08 Thread Ruifeng Wang
> -Original Message- > From: David Marchand > Sent: Friday, January 6, 2023 6:27 PM > To: Kai Ji ; Ruifeng Wang > Cc: Fan Zhang ; Akhil Goyal ; > dev@dpdk.org; nd > ; sta...@dpdk.org; Feifei Wang > Subject: Re: [PATCH] crypto/openssl: fix warning on copy length

Re: [PATCH] crypto/openssl: fix warning on copy length

2023-01-06 Thread David Marchand
On Fri, Jan 6, 2023 at 11:16 AM Ruifeng Wang wrote: > > When building with gcc 11.2.0, the compiler warns as follows: > In function 'memcpy', > inlined from 'openssl_set_session_auth_parameters' at > ../drivers/crypto/openssl/rte_openssl_pmd.c:699:3, > inlined from 'openssl_set_session_pa

[PATCH] crypto/openssl: fix warning on copy length

2023-01-06 Thread Ruifeng Wang
When building with gcc 11.2.0, the compiler warns as follows: In function 'memcpy', inlined from 'openssl_set_session_auth_parameters' at ../drivers/crypto/openssl/rte_openssl_pmd.c:699:3, inlined from 'openssl_set_session_parameters' at ../drivers/crypto/openssl/rte_openssl_pmd.c:826:9: