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 54691A034C; Mon, 5 Sep 2022 08:38:45 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EC98140697; Mon, 5 Sep 2022 08:38:44 +0200 (CEST) Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by mails.dpdk.org (Postfix) with ESMTP id 5D98940685; Fri, 2 Sep 2022 14:56:08 +0200 (CEST) Received: by mail-pl1-f180.google.com with SMTP id l3so1745273plb.10; Fri, 02 Sep 2022 05:56:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=rFF1XXIFeH8ZokUJ9W79QNkM7CZwV9cHKY9sZV29zy0=; b=TKhXkZOjO6T7/8jvKaubX32aCEpm45SRImAnUeCwB1nDAeT88rMVRRhhwprVWe9Kk+ Z4jd2bXGl5RabOicUBSKeugQKw3fzv/jr2xRQFwgSFmrsDzGIWfq+iRsVvZM9Y6gmUYx kmZrtru6uv461b1f+4xDSFtYa16kr4mIf3/OILUFpOJjvEfWuyOBE74uWUuMZmlkE5Cb EvM/zLIBJjFLBFGM5SsZgJrxwIL05peRFpCxobyCucfdR6S/NAswKUaKl6dM+foJWLf3 z+pJO5acjNjC/BaXWurpWVCYm2n18+Vc7eP1VKM6E6syPh8aOS9oYFbbhP5W3T67bbot xPMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=rFF1XXIFeH8ZokUJ9W79QNkM7CZwV9cHKY9sZV29zy0=; b=en176B2FleaKVwa0gpyZ2zE9v9192rmLmIoB4tJFxiiD5bUKmET07k2oiwEtefzZge JvwaY4xLkWzucvCHT8cPgNW398ff5RpO4R+ZLBQoNLFnezDRRo3T6N+Rwb7byGn9F4kD 8CDsKERWEVxhL6tnLw03lGUR1cBiDLeOJoY9t6G78d8mF0DN3N9gAWNuIsho8WEpob8b cdofUk/RGPu6rT9MPMCi5sMJ5vlo0b7EFpIPYPdige+mWSFKLXpURLD0ad7mfoZUBpgW tT3DzaZPEqI/QxqIw42TmWSxqFTeQw9kzWb26uPh19V87P2TdTR+R9MnfpR3lApTTehO gfPQ== X-Gm-Message-State: ACgBeo3D74FU6LGHuKjccuA9Owy8wMUcffmaITmmLUxfqg/jmgDaoTyx iKAokiVqHfLflKbUD6OtfgI= X-Google-Smtp-Source: AA6agR72SdJ1B0eO+lxj0Fj6eLLvJDSzS7WPOaV9DwsRxi2d+Vnwb2MR1RL12JYvDyyR1RrSsJc09g== X-Received: by 2002:a17:90b:3a81:b0:1fd:c490:4f08 with SMTP id om1-20020a17090b3a8100b001fdc4904f08mr4636382pjb.105.1662123367493; Fri, 02 Sep 2022 05:56:07 -0700 (PDT) Received: from debian.me (subs03-180-214-233-81.three.co.id. [180.214.233.81]) by smtp.gmail.com with ESMTPSA id q29-20020aa7961d000000b0053617cbe2d2sm1676818pfg.168.2022.09.02.05.56.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Sep 2022 05:56:07 -0700 (PDT) Received: by debian.me (Postfix, from userid 1000) id 1197E1039BD; Fri, 2 Sep 2022 19:56:01 +0700 (WIB) Date: Fri, 2 Sep 2022 19:56:01 +0700 From: Bagas Sanjaya To: Amit Prakash Shukla Cc: Maxime Coquelin , Chenbo Xia , dev@dpdk.org, jerinj@marvell.com, stable@dpdk.org, Ruifeng.Wang@arm.com Subject: Re: [PATCH v2] vhost: compilation fix for GCC-12 Message-ID: References: <20220901084943.3075710-1-amitprakashs@marvell.com> <20220902124152.3231904-1-amitprakashs@marvell.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="+c0nxdDMY1HG2/YS" Content-Disposition: inline In-Reply-To: <20220902124152.3231904-1-amitprakashs@marvell.com> X-Mailman-Approved-At: Mon, 05 Sep 2022 08:38:44 +0200 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 --+c0nxdDMY1HG2/YS Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 02, 2022 at 06:11:52PM +0530, Amit Prakash Shukla wrote: > ../lib/vhost/virtio_net.c:941:35: error: > 'buf_vec[0].buf_len' may be used uninitialized > [-Werror=3Dmaybe-uninitialized] > 941 | buf_len =3D buf_vec[vec_idx].buf_len; > | ~~~~~~~~~~~~~~~~^~~~~~~~ > ../lib/vhost/virtio_net.c: In function 'virtio_dev_rx_packed': > ../lib/vhost/virtio_net.c:1285:27: note: 'buf_vec' declared here > 1285 | struct buf_vector buf_vec[BUF_VECTOR_MAX]; > | ^~~~~~~ > cc1: all warnings being treated as errors >=20 > Fixes: 93520085efda ("vhost: add packed ring single enqueue") > Cc: stable@dpdk.org Please describe what this patch is doing (the current state of code, why it errored, and how it is fixing the error). Write the description in imperative mood. I don't see the description other than error message above. Also, for stable patches submission, Cc stable@vger.kernel.org. Thanks. --=20 An old man doll... just what I always wanted! - Clara --+c0nxdDMY1HG2/YS Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQSSYQ6Cy7oyFNCHrUH2uYlJVVFOowUCYxH9XQAKCRD2uYlJVVFO o71TAQC1uUblUm6CCoCI9n5r+mEzMBX9eAOjeCtH7Kv6DPRutAEAgyT1G49t5UPz cvlQtTe1uOJumnv7Hhtc+vFjw6ZtDw8= =sEld -----END PGP SIGNATURE----- --+c0nxdDMY1HG2/YS--