regex/mlx5: fix minsize build
authorThomas Monjalon <thomas@monjalon.net>
Sun, 8 Aug 2021 12:51:35 +0000 (14:51 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 15 Sep 2021 15:12:29 +0000 (17:12 +0200)
commit51d7396440f85846dcf8d098ff6d97713d621178
tree8062781f192bf7817d28c3ba2c74a8cea788aa1e
parent11c2e4b41c962414e7183222a6504697493d9433
regex/mlx5: fix minsize build

Error occurs when configuring meson with --buildtype=minsize
with GCC 11.1.0:

drivers/regex/mlx5/mlx5_regex_fastpath.c:398:17: error:
‘len’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
|                 complete_umr_wqe(qp, sq, &qp->jobs[mkey_job_id], sq->pi,
|                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|                                  klm_num, len);
|                                  ~~~~~~~~~~~~~
drivers/regex/mlx5/mlx5_regex_fastpath.c:315:31: note: ‘len’ was declared here
|         uint32_t klm_num = 0, len;
|                               ^~~

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
drivers/regex/mlx5/mlx5_regex_fastpath.c