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 D6950A034F; Wed, 6 May 2020 11:18:29 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AF85B1D701; Wed, 6 May 2020 11:18:29 +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 2E6111D6C9 for ; Wed, 6 May 2020 11:18:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588756707; 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=bxXZ7IjtmABaHun2IaOO+57NIoV0p6pEINxeSWjgQ1FM23gkR2XRtJCFMZW9kjT08UrrBK l0Gh1RmorHKVu+qg9feSoWpN6YBvA3usaRFRVA+f72h+QwG6gJQon4tner1MHuZWz++/gx 6o1kR6o5UFe+3BjpZba6Cku4BeO1kLw= Received: from mail-vs1-f71.google.com (mail-vs1-f71.google.com [209.85.217.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-208-6D3hzna3OiW4euwTHCyhIQ-1; Wed, 06 May 2020 05:18:24 -0400 X-MC-Unique: 6D3hzna3OiW4euwTHCyhIQ-1 Received: by mail-vs1-f71.google.com with SMTP id w18so198295vsw.9 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=XY3ZWtvuzFtcRLcaQByXW3V2hKbDI7aawWLG3UPYnDBXPve/ja4tS5I5X3NRCltLXY w88dv9QgNKfvoJJdDyx82xDUXek4u/dA9Jp3Zb6pLbkCLmMHTayfDQLyaGUIwYV+HjVn oF3bk6Vd+Wo0CIh/FJD+k5EojYFrn7hqkJl1OHNIOXxyV3lrQxrr7WDuVxKrlxSTDUkm NqVcKX/vGikIkqKY06/bXXBuBdV4WZC8TUxosXlUzWj7lqK9oI8UgRg5eM+5RsB4knoq ME2P/fpRRL1UCRT4Z5yh80/Xy6sdGAY9FBIwASo3Htt4qNLUAd5/vsNL7944/rQhM6ym Tx1g== X-Gm-Message-State: AGi0PuYKUeYb96mduGfHV/swo4A1N0GN8y4L1T789TQtYDNuMJaVSUqp Q4VWCcmqdXlRJejmsjY1rui8NI2szFJjF3N50QsRVstRArwLuWOVrPLLNHlWPpMj6ubzwC28Pyv Ys8VRsbaQVsaBydUd9U4= X-Received: by 2002:ab0:2141:: with SMTP id t1mr5913856ual.86.1588756703466; 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-dev] [dpdk-stable] [PATCH v2 1/2] net/avp: fix gcc 10 maybe-uninitialized warning X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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