Message ID | 20210808125139.3573701-5-thomas@monjalon.net (mailing list archive) |
---|---|
State | Accepted, archived |
Delegated to: | David Marchand |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1ACDAA0A0C; Sun, 8 Aug 2021 14:52:10 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 21E744117B; Sun, 8 Aug 2021 14:51:53 +0200 (CEST) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by mails.dpdk.org (Postfix) with ESMTP id 0343E4117A for <dev@dpdk.org>; Sun, 8 Aug 2021 14:51:52 +0200 (CEST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id AF8695C00D8; Sun, 8 Aug 2021 08:51:51 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sun, 08 Aug 2021 08:51:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=fm1; bh= 9Dw8fWRfdmYpJhyWrXjYgr1ARm/vXEYqcLVXe1hCqp0=; b=6B4Rtpp+Mai7Mfyv GMDCVHdmIaJZZtcUd0MOJFuHryrGcAmuXCNEpzCBasEPVPbM4alt5bRm5ReY0R2X d7Pvq2u1Nk/JLm9CvSLii/hLl87k/OsOH8MJhGOiERFzWNr6f1pjnC3sQ+MmsbIH FMTUVSz0D+P1P2n9Os8gaU3S1I9DkgpaY6SFFtudT5UA7GOg4TMNyAQCtDD/eUvn RlQVjOW03KbGgLplgfVFEmLX7x23/mW8eR7Ul9yureToIp9bAKHtuMSdu+2EKCif qhGQMRaoo0hrx9tXuIpXQOv6LVnSDJXEqPdCHxR+m07wP1HU3B2jUjd+WLHpmPvV lvGB0A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=9Dw8fWRfdmYpJhyWrXjYgr1ARm/vXEYqcLVXe1hCq p0=; b=IsQsLsFlInDQyKTlnuVVkw3P79wCl1EvnHe1ngfphYaxFeiPWanduwFzV AYTrO8i7ZDg0jbFOeUli9SoKH3HOAGYt2P3VXqMjSYuPszj+w6s448qm4DEoqxOI TaRpDQTVdnSScFenw7O6ZbUFnA/cXKzjgebOO45cDMLjE8iOQJseRv5Xt4JF5JgL g1jEA+cnKvFspdN5/57wHUqkSCthLCQEuwsuT/1M1PkLGmeyL3l2RMW/XTvoFELN PWVROxPImwLZVenO7DceagLgyZu8Bx4K4EUqmiC5F4xW82fC0Icx4aVRwydJMBTa iTDI65AmHvI9UBwYVsDXhu7WmLpLQ== X-ME-Sender: <xms:Z9MPYfe1qCD-zwe7CL7AeE_FEONFu35k_p5mX2MX27jHuDaykvoZuQ> <xme:Z9MPYVOA-7SXrdJsUZFPJYHGSanXOMEzVT6ilDBhfwSFtgyePRY8PjDi1bMltPh3A Afx_HUcVdMgeX2HmQ> X-ME-Received: <xmr:Z9MPYYiNRELTPut4-cG2fDzXhD8onjNUN05wl3evdrNmFTm59WRTgu4dzMHT7yoYwtouEJm7gP_r2CYnWeoGC8l3ipylwJA> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrjeehgdehjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgjfhggtgfgsehtkeertdertdejnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg ftrfgrthhtvghrnhepvedutdevueevjeekveehheevffeugeejudekffeltdelkeeifeeg udehvdegjefhnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth X-ME-Proxy: <xmx:Z9MPYQ_fm3woI5Yi2A0T6oz2t7CZP8-F59qHhcCbJ76hQqIzEwJ65Q> <xmx:Z9MPYbs33fjdguyxJ3l35CutI7f225afRA4K2S7XZHmMwEOVUZyHNA> <xmx:Z9MPYfFYjcH5QSTSs2e7YhY3r3x6SS2oRhVFuamDC9u63oWB6zMDdw> <xmx:Z9MPYbKL8ywtUD8hNn693cPSE9L0GvqYc1KmVw2fYNwRMv5PYJOinQ> Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 8 Aug 2021 08:51:50 -0400 (EDT) From: Thomas Monjalon <thomas@monjalon.net> To: dev@dpdk.org Cc: bruce.richardson@intel.com, david.marchand@redhat.com, Akhil Goyal <gakhil@marvell.com>, Declan Doherty <declan.doherty@intel.com> Date: Sun, 8 Aug 2021 14:51:37 +0200 Message-Id: <20210808125139.3573701-5-thomas@monjalon.net> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210808125139.3573701-1-thomas@monjalon.net> References: <20210412215339.2439530-1-thomas@monjalon.net> <20210808125139.3573701-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v3 4/5] test/crypto: fix minsize build X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series | more build tests | |
Checks
Context | Check | Description |
---|---|---|
ci/checkpatch | warning | coding style issues |
Commit Message
Thomas Monjalon
Aug. 8, 2021, 12:51 p.m. UTC
Error occurs when configuring meson with --buildtype=minsize
with GCC 11.1.0:
app/test/test_cryptodev_blockcipher.c:1133:45: error:
‘blk_tcs’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
| const struct blockcipher_test_case *blk_tcs;
| ^~~~~~~
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
---
app/test/test_cryptodev_blockcipher.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
> -----Original Message----- > From: dev <dev-bounces@dpdk.org> On Behalf Of Thomas Monjalon > Sent: Sunday, August 8, 2021 8:52 PM > To: dev@dpdk.org > Cc: bruce.richardson@intel.com; david.marchand@redhat.com; Akhil Goyal > <gakhil@marvell.com>; Declan Doherty <declan.doherty@intel.com> > Subject: [dpdk-dev] [PATCH v3 4/5] test/crypto: fix minsize build > > Error occurs when configuring meson with --buildtype=minsize with GCC > 11.1.0: > > app/test/test_cryptodev_blockcipher.c:1133:45: error: > ‘blk_tcs’ may be used uninitialized in this function [-Werror=maybe- > uninitialized] > | const struct blockcipher_test_case *blk_tcs; > | ^~~~~~~ > > Signed-off-by: Thomas Monjalon <thomas@monjalon.net> > --- > app/test/test_cryptodev_blockcipher.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/app/test/test_cryptodev_blockcipher.c > b/app/test/test_cryptodev_blockcipher.c > index 53fd4718af..0d5082887e 100644 > --- a/app/test/test_cryptodev_blockcipher.c > +++ b/app/test/test_cryptodev_blockcipher.c > @@ -1184,7 +1184,7 @@ build_blockcipher_test_suite(enum > blockcipher_test_type test_type) > ts_setup = authonly_setup; > break; > default: > - break; > + return NULL; > } > > ts = calloc(1, sizeof(struct unit_test_suite) + > -- > 2.31.1 Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
diff --git a/app/test/test_cryptodev_blockcipher.c b/app/test/test_cryptodev_blockcipher.c index 53fd4718af..0d5082887e 100644 --- a/app/test/test_cryptodev_blockcipher.c +++ b/app/test/test_cryptodev_blockcipher.c @@ -1184,7 +1184,7 @@ build_blockcipher_test_suite(enum blockcipher_test_type test_type) ts_setup = authonly_setup; break; default: - break; + return NULL; } ts = calloc(1, sizeof(struct unit_test_suite) +