DPDK patches and discussions
 help / color / mirror / Atom feed
From: Ali Alnubani <alialnu@nvidia.com>
To: David Marchand <david.marchand@redhat.com>,
	"dev@dpdk.org" <dev@dpdk.org>
Cc: Maxime Coquelin <maxime.coquelin@redhat.com>,
	Chenbo Xia <chenbox@nvidia.com>, Akhil Goyal <gakhil@marvell.com>,
	Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>
Subject: RE: [PATCH] vhost/crypto: fix build with asserts
Date: Wed, 5 Mar 2025 10:43:09 +0000	[thread overview]
Message-ID: <PH7PR12MB91732EA3B22C22030E24FCF5DACB2@PH7PR12MB9173.namprd12.prod.outlook.com> (raw)
In-Reply-To: <20250305094323.598983-1-david.marchand@redhat.com>

> -----Original Message-----
> From: David Marchand <david.marchand@redhat.com>
> Sent: Wednesday, March 5, 2025 11:43 AM
> To: dev@dpdk.org
> Cc: Maxime Coquelin <maxime.coquelin@redhat.com>; Chenbo Xia
> <chenbox@nvidia.com>; Akhil Goyal <gakhil@marvell.com>; Gowrishankar
> Muthukrishnan <gmuthukrishn@marvell.com>
> Subject: [PATCH] vhost/crypto: fix build with asserts
> 
> ../lib/vhost/vhost_crypto.c: In function ‘virtio_crypto_asym_rsa_der_to_xform’:
> ../lib/vhost/vhost_crypto.c:538:42: warning: comparison of integer expressions
> 	of different signedness: ‘long int’ and ‘size_t’ {aka ‘long unsigned int’}
> 	[-Wsign-compare]
>   538 |         RTE_ASSERT((tlv + len - &der[0]) == der_len);
>       |                                          ^~
> ../lib/eal/include/rte_branch_prediction.h:43:45: note: in definition of macro
> 	‘unlikely’
>    43 | #define unlikely(x)     __builtin_expect(!!(x), 0)
>       |                                             ^
> ../lib/eal/include/rte_debug.h:47:25: note: in expansion of macro ‘RTE_VERIFY’
>    47 | #define RTE_ASSERT(exp) RTE_VERIFY(exp)
>       |                         ^~~~~~~~~~
> ../lib/vhost/vhost_crypto.c:538:9: note: in expansion of macro ‘RTE_ASSERT’
>   538 |         RTE_ASSERT((tlv + len - &der[0]) == der_len);
>       |         ^~~~~~~~~~
> 
> Fixes: d1b484bf1876 ("vhost/crypto: support asymmetric RSA")
> 
> Signed-off-by: David Marchand <david.marchand@redhat.com>
> ---

Tested-by: Ali Alnubani <alialnu@nvidia.com>

Thanks!

- Ali

      parent reply	other threads:[~2025-03-05 10:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-05  9:43 David Marchand
2025-03-05  9:48 ` Maxime Coquelin
2025-03-05 11:00   ` Thomas Monjalon
2025-03-05  9:54 ` [EXTERNAL] " Gowrishankar Muthukrishnan
2025-03-05 10:43 ` Ali Alnubani [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=PH7PR12MB91732EA3B22C22030E24FCF5DACB2@PH7PR12MB9173.namprd12.prod.outlook.com \
    --to=alialnu@nvidia.com \
    --cc=chenbox@nvidia.com \
    --cc=david.marchand@redhat.com \
    --cc=dev@dpdk.org \
    --cc=gakhil@marvell.com \
    --cc=gmuthukrishn@marvell.com \
    --cc=maxime.coquelin@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).