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 E816CA00C2 for ; Fri, 17 Jun 2022 14:06:40 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D589F4281B; Fri, 17 Jun 2022 14:06:40 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 912D240698 for ; Fri, 17 Jun 2022 14:06:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1655467598; 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=QwiHsRRdAi512WJ36ye/FcS/qgDesMfFrNfNeKSiq66/5uheI/pjxfzzta9FAbJPal/ZnZ 6hBQsqO9a/w+7NLP9E87CNnK7yImvlqrVdbG65qLLWEAxSTX2c/FbGFyfpmREyVVHbpcEb G3TyoHh3O/p5K7VGogjTyIgSQ8J2N8Y= Received: from mail-lf1-f70.google.com (mail-lf1-f70.google.com [209.85.167.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-625-7-6CQT-uNCWMyIXv6gkKmA-1; Fri, 17 Jun 2022 08:06:34 -0400 X-MC-Unique: 7-6CQT-uNCWMyIXv6gkKmA-1 Received: by mail-lf1-f70.google.com with SMTP id c21-20020a056512105500b00479762353a4so2294436lfb.8 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=zij9Cjas4hcEDczL5IvTHDAz5TjNbDFYpk5PSgOaFHr008sowaR29kDnCXCu2xHerV TwoNrdVEGwLMkb4297NBMgLCoKvrV+aDtR/v4MttKlTK1jDA75FOaeeNqVOQ6i2YsTsF 0H+Up2EoPu+XVwQF4UMws/w0Hsu/jhOS8imYYpmcDxdI5OYrm48whrJpXa/gzwFyUSVA P3Qn2k11nbJWQz/FBhLRXUcN0yTUV3Aayoo99Lo3s+J4yYXvoGSe0tkTauwO9xsQ0Yqz elbRI5VYaQIofRjk/6ezc/n4mQjFNd6Cursk1dPLMajn/ip6dbDoqBL9CBHP+Blo7S9E Ye3g== X-Gm-Message-State: AJIora+wLiJOPfX9cP6oUOWVUZg/9O32aABuym8vyOuFwWIi+53HfH/C +gmVYoI4Cqustw1zXHHwHKWen9VF+cmkqDCrQgNr72c3R+NPig5wlPm2fjHSeDfB5HaR4PeHZGY zAoYjULlaAadWWKMDdIf4d5c= X-Received: by 2002:a05:651c:24b:b0:259:85b:ac09 with SMTP id x11-20020a05651c024b00b00259085bac09mr4843963ljn.46.1655467593405; 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: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-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