From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 94307A034F for ; Wed, 6 May 2020 11:18:27 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 89FF81D6BA; Wed, 6 May 2020 11:18:27 +0200 (CEST) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) by dpdk.org (Postfix) with ESMTP id 63FB11D6BA for ; Wed, 6 May 2020 11:18:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588756705; 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=dQNwcmGh9BrnZXRNH6M9H1iaeM9ZFrzQ1RqXmOx8CLA=; b=GkLemOor4qMMliDtNbpRR0+fs06Oz5Uooa0hMUakmAW3hvCP9WmZTrSMt8O7g+pYowIM/k vgUAJMf2CajpsAj6aZOZnDM3aTjuBNdL6EATKRj9EB1o8Wv6IV0OnJevTZb8A62lMabAkn mFyB6cS30q7uwLUlnHAAPmC2stT3RBM= Received: from mail-ua1-f70.google.com (mail-ua1-f70.google.com [209.85.222.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-402-i8zEq30QMQW2cMlXDuSE1g-1; Wed, 06 May 2020 05:18:24 -0400 X-MC-Unique: i8zEq30QMQW2cMlXDuSE1g-1 Received: by mail-ua1-f70.google.com with SMTP id v27so424958uaa.22 for ; Wed, 06 May 2020 02:18:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=dQNwcmGh9BrnZXRNH6M9H1iaeM9ZFrzQ1RqXmOx8CLA=; b=nm0KgJ7mtdWn1DTI0Qasz1e1YJmcr254U5Gq/AkJBCmFjWUNWBXB6pq9XicUlrwt9n Y1SfhkghvnawC+Xd2DsGg5p9x5LRd44foMhAQa69rXSHaOu+uErRyKpjYuXiYFbbvrW1 PSBYbCsqCOqvx5VnSPDPWL1Z03IjdRlufwDQiDC1fwiJdM3sdKdplH49sdbHlxxiyEqu f7218Y/dHasp7LhcPWIQNatN9/c9Om/VFXbaYYZcK6ffymDsLy/i1e3Dpbd7nY5/SODJ sdxHnG7sVfkRvGMJuaUpriSUxLpx779d4JJqXcrWg+7kyMcvwx6eQYoRIO99l+p2HRDY a3hg== X-Gm-Message-State: AGi0PuYeCujS0Xp+f9OBtlcobf8Bs7fl4E3gvD4v9XFgCyaOML6/qlSr teHMzyqZaNhFRvy3OGLF8ANJ99Z95yX0Q0slQDgJh11tp9hHNL6lXbgQJY17CmDsBf+A+W57IPz Bpw8eco/uFTmT3pYtfWplziA= X-Received: by 2002:ab0:2141:: with SMTP id t1mr5913857ual.86.1588756703467; Wed, 06 May 2020 02:18:23 -0700 (PDT) X-Google-Smtp-Source: APiQypKn3/8OlH36stLp4XhWfvwQv3LDPTRFY+IGSA3mWPyPt8iw3uloz13fLYDDZf4ClUbAC/h26/SY3JHyyojFoDg= X-Received: by 2002:ab0:2141:: with SMTP id t1mr5913843ual.86.1588756703190; Wed, 06 May 2020 02:18:23 -0700 (PDT) MIME-Version: 1.0 References: <20200220093744.13925-1-ktraynor@redhat.com> <20200311113300.32487-1-ktraynor@redhat.com> In-Reply-To: From: David Marchand Date: Wed, 6 May 2020 11:18:11 +0200 Message-ID: To: Kevin Traynor Cc: "dev@dpdk.org" , "stable@dpdk.org" , "Webster, Steven" , "Peters, Matt" X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-stable] [PATCH v2 1/2] net/avp: fix gcc 10 maybe-uninitialized warning X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 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 Sender: "stable" On Thu, Mar 12, 2020 at 12:56 AM Webster, Steven wrote: > > > gcc 10.0.1 reports: > > > > ../drivers/net/avp/avp_ethdev.c: In function =E2=80=98avp_xmit_scattere= d_pkts=E2=80=99: > > ../drivers/net/avp/avp_ethdev.c:1791:24: > > warning: =E2=80=98avp_bufs[count]=E2=80=99 may be used uninitialized in= this function [- > > Wmaybe-uninitialized] > > 1791 | tx_bufs[i] =3D avp_bufs[count]; > > | ~~~~~~~~^~~~~~~ > > ../drivers/net/avp/avp_ethdev.c:1791:24: > > warning: =E2=80=98avp_bufs[count]=E2=80=99 may be used uninitialized in= this function [- > > Wmaybe-uninitialized] > > > > Fix by intializing the array. > > > > Fixes: 295abce2d25b ("net/avp: add packet transmit functions") > > Cc: stable@dpdk.org > > > > Signed-off-by: Kevin Traynor > > --- > Acked-by: Steven Webster Applied, thanks. --=20 David Marchand