From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 691DAA0562; Wed, 14 Apr 2021 15:00:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4EA93161AB6; Wed, 14 Apr 2021 15:00:05 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id AC93D161AB5 for ; Wed, 14 Apr 2021 15:00:03 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 9C4C6A09E4; Wed, 14 Apr 2021 15:00:03 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Wed, 14 Apr 2021 13:00:03 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: cryptodev X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kevuzaj@gmail.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 Subject: [dpdk-dev] [Bug 676] Cryptodev test build warning on Fedora 34 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" https://bugs.dpdk.org/show_bug.cgi?id=3D676 Bug ID: 676 Summary: Cryptodev test build warning on Fedora 34 Product: DPDK Version: unspecified Hardware: All OS: Linux Status: UNCONFIRMED Severity: normal Priority: Normal Component: cryptodev Assignee: dev@dpdk.org Reporter: kevuzaj@gmail.com Target Milestone: --- Cryptodev tests have build warnings on Fedora-34_Beta-1.3 with the latest packages. [kevin@fedora ~]$ cat /etc/redhat-release=20 Fedora release 34 (Thirty Four) [kevin@fedora ~]$ uname -a Linux fedora 5.11.13-300.fc34.x86_64 #1 SMP Sun Apr 11 15:07:42 UTC 2021 x8= 6_64 x86_64 x86_64 GNU/Linux [kevin@fedora ~]$ gcc --version gcc (GCC) 11.0.1 20210324 (Red Hat 11.0.1-0) 591/2712] Compiling C object app/test/dpdk-test.p/test_cryptodev.c.o ../app/test/test_cryptodev.c: In function =E2=80=98test_multi_session=E2=80= =99: ../app/test/test_cryptodev.c:10448:9: warning: array subscript =E2=80=98str= uct rte_cryptodev_sym_session *[4]=E2=80=99 is partly outside array bounds of = =E2=80=98unsigned char[33]=E2=80=99 [-Warray-bounds] 10448 | rte_cryptodev_sym_session_init(ts_params->valid_devs[0], | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 10449 | sessions[i], &ut_params->auth_xform, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 10450 | ts_params->session_priv_mpool); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../app/test/test_cryptodev.c:10400:20: note: referencing an object of size = 33 allocated by =E2=80=98rte_malloc=E2=80=99 10400 | sessions =3D rte_malloc(NULL, | ^~~~~~~~~~~~~~~~ 10401 | (sizeof(struct rte_cryptodev_sym_session *)= * | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~ 10402 | MAX_NB_SESSIONS) + 1, 0); | ~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../app/test/test.h:25, from ../app/test/test_cryptodev.c:29: ../app/test/test_cryptodev.c:10451:34: warning: array subscript =E2=80=98st= ruct rte_cryptodev_sym_session *[4]=E2=80=99 is partly outside array bounds of = =E2=80=98unsigned char[33]=E2=80=99 [-Warray-bounds] 10451 | TEST_ASSERT_NULL(sessions[i], | ~~~~~~~~^~~ ../lib/librte_eal/include/rte_test.h:20:15: note: in definition of macro =E2=80=98RTE_TEST_ASSERT=E2=80=99 20 | if (!(cond)) {=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20 \ | ^~~~ ../app/test/test.h:103:26: note: in expansion of macro =E2=80=98RTE_TEST_AS= SERT_NULL=E2=80=99 103 | #define TEST_ASSERT_NULL RTE_TEST_ASSERT_NULL | ^~~~~~~~~~~~~~~~~~~~ ../app/test/test_cryptodev.c:10451:9: note: in expansion of macro =E2=80=98TEST_ASSERT_NULL=E2=80=99 10451 | TEST_ASSERT_NULL(sessions[i], | ^~~~~~~~~~~~~~~~ ../app/test/test_cryptodev.c:10400:20: note: referencing an object of size = 33 allocated by =E2=80=98rte_malloc=E2=80=99 10400 | sessions =3D rte_malloc(NULL, | ^~~~~~~~~~~~~~~~ 10401 | (sizeof(struct rte_cryptodev_sym_session *)= * | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~ 10402 | MAX_NB_SESSIONS) + 1, 0); | ~~~~~~~~~~~~~~~~~~~~~~~~ --=20 You are receiving this mail because: You are the assignee for the bug.=