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 01254A00C2; Fri, 17 Jun 2022 14:06:38 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E737242802; Fri, 17 Jun 2022 14:06:38 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id EAD8F40698 for ; Fri, 17 Jun 2022 14:06:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1655467596; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8nPcCzrrvZG1o54ENW4nZdPYk2y5OxAc+3KumHL3BV4=; b=ZtsMGp+gdiZ55h4YjqlhaazcsWju2xfan94x991N4SVw177jSfInuQBiK0VVsqINSq5XUM FIfnTqe/DzrKkJLh9c1+Nq90lsb7lfsgtmZPdsQvhJDw1bNrJo0kPEk+tARNVto1RrhhiB S2OpUhTdKMVJ+93h8ytTJF7/2drjbqI= Received: from mail-lf1-f72.google.com (mail-lf1-f72.google.com [209.85.167.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-644-dXRP1AdvO8eR5vY96cAotg-1; Fri, 17 Jun 2022 08:06:35 -0400 X-MC-Unique: dXRP1AdvO8eR5vY96cAotg-1 Received: by mail-lf1-f72.google.com with SMTP id l12-20020a056512110c00b0047961681d22so2282747lfg.9 for ; Fri, 17 Jun 2022 05:06:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=8nPcCzrrvZG1o54ENW4nZdPYk2y5OxAc+3KumHL3BV4=; b=sQHOJb62SmETdyBW/iFYwFGtNJkfNMOQ+K88rCRrt4grJl8a2ibLv1knMkHEb4TGQk nXEWAMkZKHAs62ColoDuO30br0GKcP59kgBa/MlMJFy2snRkTcbea/QiWxUy+P7teg4Z 3Qte4M5s7bqy6GqxVG+Uykw8rmzwAihwS24nDiu+ovX+uA3ZAqGdp1kWgTPn1bXdSKZn V3yenjLIOzqQKel0zn7fH+SaQv1eQOJjD4rZZ4iTF7+ilwBQvtROGJtqTUkJJNzEdE7j cc+0fP8WwMty0HKiGJPF2VnzAehoQMyn+br5iKZ3V60KXJLoLyTxDJSxkilvQh8if1Zf hqHg== X-Gm-Message-State: AJIora9RAnkohrwB7F5y+9zYOXXEMHA/IaLQh3ovu5GhYL7DLVc6r2BU uzzIrhpSppcMrEIx7EMQTKhQ2tyc6rTMayiOr5/MxLDbCeys9TYpQif6Yd9bOLXqS7A5XR+6gpV 6KVZCgnNAa2SN0kc68Tk= X-Received: by 2002:a05:651c:24b:b0:259:85b:ac09 with SMTP id x11-20020a05651c024b00b00259085bac09mr4843970ljn.46.1655467593492; Fri, 17 Jun 2022 05:06:33 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vC/PVh7w9mVLHMa/S5JKDRxLzBn4z4r/34ILQ6OFyEDxHMQ/nuYL4cZuQTiATL5gRVzKUuBGLQ4X4Wxry+ZAc= X-Received: by 2002:a05:651c:24b:b0:259:85b:ac09 with SMTP id x11-20020a05651c024b00b00259085bac09mr4843956ljn.46.1655467593192; Fri, 17 Jun 2022 05:06:33 -0700 (PDT) MIME-Version: 1.0 References: <20220518101657.1230416-13-david.marchand@redhat.com> <20220616093320.884583-1-david.marchand@redhat.com> In-Reply-To: <20220616093320.884583-1-david.marchand@redhat.com> From: David Marchand Date: Fri, 17 Jun 2022 14:06:22 +0200 Message-ID: Subject: Re: [PATCH v2] test/ipsec: fix build with GCC 12 To: dev Cc: Bruce Richardson , dpdk stable , Konstantin Ananyev , Bernard Iremonger , Vladimir Medvedkin Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 On Thu, Jun 16, 2022 at 11:33 AM David Marchand wrote: > > GCC 12 raises the following warning: > > In function =E2=80=98_mm256_loadu_si256=E2=80=99, > inlined from =E2=80=98rte_mov32=E2=80=99 at > ../lib/eal/x86/include/rte_memcpy.h:319:9, > inlined from =E2=80=98rte_mov128=E2=80=99 at > ../lib/eal/x86/include/rte_memcpy.h:344:2, > inlined from =E2=80=98rte_memcpy_generic=E2=80=99 at > ../lib/eal/x86/include/rte_memcpy.h:438:4, > inlined from =E2=80=98rte_memcpy=E2=80=99 at > ../lib/eal/x86/include/rte_memcpy.h:882:10, > inlined from =E2=80=98setup_test_string.constprop=E2=80=99 at > ../app/test/test_ipsec.c:572:4: > /usr/lib/gcc/x86_64-redhat-linux/12/include/avxintrin.h:929:10: error: > array subscript =E2=80=98__m256i_u[3]=E2=80=99 is partly outside arra= y bounds of > =E2=80=98const char[108]=E2=80=99 [-Werror=3Darray-bounds] > 929 | return *__P; > | ^~~~ > ../app/test/test_ipsec.c: In function =E2=80=98setup_test_string.constpro= p=E2=80=99: > ../app/test/test_ipsec.c:539:12: note: at offset 96 into object > =E2=80=98null_plain_data=E2=80=99 of size 108 > 539 | const char null_plain_data[] =3D > | ^~~~~~~~~~~~~~~ > > Add a hint so that the compiler understands the copied data is within > the passed string boundaries. > Ferruh had opened a bz. Bugzilla ID: 848 > Cc: stable@dpdk.org > > Signed-off-by: David Marchand --=20 David Marchand