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 0184FA0554 for ; Sat, 11 Jun 2022 17:36:39 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F1BEB4161A; Sat, 11 Jun 2022 17:36:38 +0200 (CEST) Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by mails.dpdk.org (Postfix) with ESMTP id 26E1540150 for ; Sat, 11 Jun 2022 17:36:37 +0200 (CEST) Received: by mail-pl1-f176.google.com with SMTP id f8so1612948plo.9 for ; Sat, 11 Jun 2022 08:36:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9vF8hDdpBXNaIxKt0zL6jYhSI1TfccF3zBliE8aIYCI=; b=zfgr8cqBFjj/A+dX3DVzlPdk9EKvWPjwRFKOjo20qkDkQ+3uchcLl/Nt/uBRiGPkbx nkRzVYvMflJFZrFuZju1QemXu54xsUp6LcDozNrpw6dfkVezElC6utjwVUdWaIk+vNnJ glTMKIj9g5KDQqqkRJU0MPhiCgyKIXfaUS5qLX0dNMdrEu+yehqki1dZFZnYJnHGd8cr UfJhe6/BQHouZjMSFEdisZQ6Un/Rl2JmXW0jJT/doRsEUBguIRXKqBIjyMxCoJUTWW4A S24hoSLUUH83gavcUOiKi3yomdhsUU2BPGltFyhcAc61bd5SvHWDAnfreQGxhYpJbRx2 SS8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9vF8hDdpBXNaIxKt0zL6jYhSI1TfccF3zBliE8aIYCI=; b=H7Pn/2i+ARDvHbkb7zACRmfm3gtM6QMF2MXq/HBfqYt+A/L5NIkPevGqCbTFd94pbg I3drf6Jug5xJzkpUBqhlX4qqH346banr1Z0QbSrbaUKOfDHFSK7y2Aytlb8lmMH+5vbA 0jxmTlrdK8lT97zivS/kcuXYFQ5+sucIBPTrFRvCAXfvczupkvFILVSyj1PJIFulMPxh uYZAx62R51BETT/Ptjew4+Zp2NfPVA8KdL3yegu0+dEeLKVVXW6NMZ536NoTFxNdRZaB 5RtyWfG7RV29B3VJ5Z5O6IcH8MxMqMypMW5UV5aC1cGyCdX3AnfssrbJe7CCyY0/Wxz+ zKog== X-Gm-Message-State: AOAM530l0pRYHeT1Fky+qRCSo50+vaNcmi7zLauEb3/wc5sECbXmsMZE NDaYIv8dSEG+8NcbKHMIfs+Oow== X-Google-Smtp-Source: ABdhPJxgH/qy6fJogLFBDzBuAq9amLj400OpUzDcvBFPwQRSFVLxckaoE+vPv8FGgOZNHZYLJQBj7A== X-Received: by 2002:a17:903:2445:b0:164:16dd:a94a with SMTP id l5-20020a170903244500b0016416dda94amr51086384pls.46.1654961796404; Sat, 11 Jun 2022 08:36:36 -0700 (PDT) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id v21-20020a170902e8d500b00163d8d9aefcsm1690382plg.80.2022.06.11.08.36.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jun 2022 08:36:35 -0700 (PDT) Date: Sat, 11 Jun 2022 08:36:33 -0700 From: Stephen Hemminger To: David Marchand Cc: dev@dpdk.org, thomas@monjalon.net, ferruh.yigit@xilinx.com, stable@dpdk.org, Xiao Wang Subject: Re: [PATCH 09/12] vdpa/ifc: fix build with GCC 12 Message-ID: <20220611083633.5336bdb4@hermes.local> In-Reply-To: <20220518101657.1230416-10-david.marchand@redhat.com> References: <20220518101657.1230416-1-david.marchand@redhat.com> <20220518101657.1230416-10-david.marchand@redhat.com> MIME-Version: 1.0 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 Wed, 18 May 2022 12:16:54 +0200 David Marchand wrote: > GCC 12 raises the following warning: >=20 > ../drivers/vdpa/ifc/ifcvf_vdpa.c: In function =E2=80=98vdpa_enable_vfio_i= ntr=E2=80=99: > ../drivers/vdpa/ifc/ifcvf_vdpa.c:383:62: error: writing 4 bytes into a > region of size 0 [-Werror=3Dstringop-overflow=3D] > 383 | fd_ptr[RTE_INTR_VEC_RXTX_OFFSET + i] =3D = fd; > | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ > ../drivers/vdpa/ifc/ifcvf_vdpa.c:348:14: note: at offset 32 into > destination object =E2=80=98irq_set_buf=E2=80=99 of size 32 > 348 | char irq_set_buf[MSIX_IRQ_SET_BUF_LEN]; > | ^~~~~~~~~~~ >=20 > Validate number of vrings to avoid out of bound access. >=20 > Cc: stable@dpdk.org >=20 > Signed-off-by: David Marchand Acked-by: Stephen Hemminger