From: Thomas Monjalon <thomas@monjalon.net> To: dev@dpdk.org Cc: bruce.richardson@intel.com, david.marchand@redhat.com, Matan Azrad <matan@nvidia.com>, Viacheslav Ovsiienko <viacheslavo@nvidia.com> Subject: [dpdk-dev] [PATCH v3 3/5] vdpa/mlx5: fix minsize build Date: Sun, 8 Aug 2021 14:51:36 +0200 Message-ID: <20210808125139.3573701-4-thomas@monjalon.net> (raw) In-Reply-To: <20210808125139.3573701-1-thomas@monjalon.net> Error occurs when configuring meson with --buildtype=minsize with GCC 11.1.0: drivers/vdpa/mlx5/mlx5_vdpa_mem.c: In function ‘mlx5_vdpa_mem_register’: drivers/vdpa/mlx5/mlx5_vdpa_mem.c:183:24: error: initialization of ‘uint64_t’ {aka ‘long unsigned int’} from ‘void *’ makes integer from pointer without a cast [-Werror=int-conversion] | uint64_t gcd = NULL; | ^~~~ drivers/vdpa/mlx5/mlx5_vdpa_mem.c:244:75: error: ‘mode’ may be used uninitialized in this function [-Werror=maybe-uninitialized] | klm_size = mode == MLX5_MKC_ACCESS_MODE_KLM ? | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | KLM_SIZE_MAX_ALIGN(empty_region_sz) : gcd; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ Signed-off-by: Thomas Monjalon <thomas@monjalon.net> --- drivers/vdpa/mlx5/mlx5_vdpa_mem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/vdpa/mlx5/mlx5_vdpa_mem.c b/drivers/vdpa/mlx5/mlx5_vdpa_mem.c index a13bde5a0b..59ce4e891c 100644 --- a/drivers/vdpa/mlx5/mlx5_vdpa_mem.c +++ b/drivers/vdpa/mlx5/mlx5_vdpa_mem.c @@ -177,10 +177,10 @@ mlx5_vdpa_mem_register(struct mlx5_vdpa_priv *priv) struct mlx5_devx_mkey_attr mkey_attr; struct mlx5_vdpa_query_mr *entry = NULL; struct rte_vhost_mem_region *reg = NULL; - uint8_t mode; + uint8_t mode = 0; uint32_t entries_num = 0; uint32_t i; - uint64_t gcd; + uint64_t gcd = 0; uint64_t klm_size; uint64_t mem_size; uint64_t k; -- 2.31.1
next prev parent reply other threads:[~2021-08-08 12:52 UTC|newest] Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-04-12 21:53 [dpdk-dev] [PATCH] devtools: test different build types Thomas Monjalon 2021-05-21 15:03 ` David Marchand 2021-07-23 20:26 ` Andrew Rybchenko 2021-08-02 22:45 ` [dpdk-dev] [PATCH v2] " Thomas Monjalon 2021-08-08 12:51 ` [dpdk-dev] [PATCH v3 0/5] more build tests Thomas Monjalon 2021-08-08 12:51 ` [dpdk-dev] [PATCH v3 1/5] net/qede: fix minsize build Thomas Monjalon 2021-08-09 5:15 ` [dpdk-dev] [EXT] " Devendra Singh Rawat 2021-08-09 7:11 ` Rasesh Mody 2021-09-15 15:16 ` David Marchand 2021-08-08 12:51 ` [dpdk-dev] [PATCH v3 2/5] regex/mlx5: " Thomas Monjalon 2021-08-11 8:48 ` Ruifeng Wang 2021-08-08 12:51 ` Thomas Monjalon [this message] 2021-08-09 6:43 ` [dpdk-dev] [PATCH v3 3/5] vdpa/mlx5: " Matan Azrad 2021-08-11 8:48 ` Ruifeng Wang 2021-08-08 12:51 ` [dpdk-dev] [PATCH v3 4/5] test/crypto: " Thomas Monjalon 2021-08-11 8:48 ` Ruifeng Wang 2021-08-08 12:51 ` [dpdk-dev] [PATCH v3 5/5] devtools: test different build types Thomas Monjalon 2021-09-15 20:27 ` [dpdk-dev] [PATCH v3 0/5] more build tests Ferruh Yigit 2021-09-16 7:05 ` David Marchand
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=20210808125139.3573701-4-thomas@monjalon.net \ --to=thomas@monjalon.net \ --cc=bruce.richardson@intel.com \ --cc=david.marchand@redhat.com \ --cc=dev@dpdk.org \ --cc=matan@nvidia.com \ --cc=viacheslavo@nvidia.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
DPDK patches and discussions This inbox may be cloned and mirrored by anyone: git clone --mirror https://inbox.dpdk.org/dev/0 dev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 dev dev/ https://inbox.dpdk.org/dev \ dev@dpdk.org public-inbox-index dev Example config snippet for mirrors. Newsgroup available over NNTP: nntp://inbox.dpdk.org/inbox.dpdk.dev AGPL code for this site: git clone https://public-inbox.org/public-inbox.git