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 27A41A0553; Sat, 11 Jun 2022 17:36:38 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1A51F4069C; Sat, 11 Jun 2022 17:36:38 +0200 (CEST) Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) by mails.dpdk.org (Postfix) with ESMTP id 272B64069C for ; Sat, 11 Jun 2022 17:36:37 +0200 (CEST) Received: by mail-pj1-f54.google.com with SMTP id o6-20020a17090a0a0600b001e2c6566046so4919671pjo.0 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=pdD7p3WCW0Rcm4XrQn8navLBb3pJB3SgZ7cQmRbBlL4VAxPZm29DmNGwVjiwyDZKGD ice6thuHRGPWmvmK5LDvOYg8KUy73ZU8NJiZRv9poxM4KFNmI/kTN7bQId2iO/zvocBr bPlXFo0crfDj8LhEav/OFmopesR07W2D8W90ZpV7L/ZX086hmQQhZY0Qs1PX/Mbt5xas HtrOet6XmB3PSzLqbEwJCMAOwFhkTTKEjGqPp7yTfQiXoIEcdVOgL3GdaURI7VYntv4U KGwKtUnFbDlTgOe/lZpzMUH+kTzOdNgynEVTTHwlI2W7whMo7RRUb+mqKeuD7OSAUPhz PwDg== X-Gm-Message-State: AOAM532JQQHd1Yir24M/P8C0EejvHUxGZ9rp0FAMdSZD1g264eeMYcb9 BaXriwjBT1hxriZtqMuneBjh3g== 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: 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 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