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 3F7A6A0093 for ; Thu, 17 Mar 2022 13:06:37 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3A94C410EC; Thu, 17 Mar 2022 13:06:37 +0100 (CET) Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) by mails.dpdk.org (Postfix) with ESMTP id 7FCA64114F for ; Thu, 17 Mar 2022 13:06:35 +0100 (CET) Received: by mail-wr1-f44.google.com with SMTP id b19so7020940wrh.11 for ; Thu, 17 Mar 2022 05:06:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vyuois7pNeHvIgX+m33JfRr25tbBBGl4ag+0/Kd0utg=; b=mHlbgSr+gGKHWuoN8814ac6N5mycZJdcgBTQuD2xxBOWujhzMtWMsbcMBadooKXh2F zbNugYqEAMDVMPilQf/ufMOQABkQWpStJpyYfe4OIsRxdFN4fk/aLEF5QIeodTuf/1bE 6srCvEs8m/JQNsMrvPfFNR3SK1C/8+0/umanFhuAJEklHJGQYYJRmIby6V8/rPeFYx5U GGv+H+aUlDrk1iO3A8nnQ7V1GL+HBwCD2k3PTWGO9Sz/SScjUcON/8EHIN7sy+ByYTIf tZAGYl7V20ToUYa5Hso8BaARXKC2djUUwcIUYJcq78/IMt1tD5k25DXxPqVcBD97ashe ub6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vyuois7pNeHvIgX+m33JfRr25tbBBGl4ag+0/Kd0utg=; b=ZXdl+EIQr8SK1HUotZllLZYC73raQforryfpgxHDRMCV9DhHDUC8SvlFmqKPWBDxGj b4ONdcmelAoySj2yQZOz9CMl0LZij71cfQrTd047TGZFBUjQ00rkJv0ttIUTyKOoQlrC +OueGI2Dmu9k5OBIra//xcLL2zwsoEc3EAkfdOOsrlbNoZU/N5LRaG9ogfTKS4QZtw4b bRwVJP1CTIvB3kwbvP7KqFtio28kQtydzEd2gdLqMz3CemqQKmT9JBnPrYusm7woXfx3 z+bsbhLVNriEeowL10VXtk2rND2mnNgY9Mtwj5rh40ZO7YWdtVYisbyRNzFwrRS+bvwD M8wQ== X-Gm-Message-State: AOAM533UBH2PVgHTMYzX2BLgAGF1Zh2+g1DTqetjr02AvrS8V2BYhGgn 1tDnx6z33JHXXmk9RBjdd+s= X-Google-Smtp-Source: ABdhPJyl/6ogpSbucnV/QeNKOB4+ce/LF/ixOHGZsNnuEQlHEeYqim9tcIW5rR0vcyJO5o+X15oNmw== X-Received: by 2002:a05:6000:3c6:b0:203:ed4f:a2b with SMTP id b6-20020a05600003c600b00203ed4f0a2bmr1574990wrg.48.1647518795215; Thu, 17 Mar 2022 05:06:35 -0700 (PDT) Received: from localhost ([137.220.125.106]) by smtp.gmail.com with ESMTPSA id u18-20020adfdd52000000b001f04e9f215fsm3874233wrm.53.2022.03.17.05.06.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Mar 2022 05:06:34 -0700 (PDT) From: luca.boccassi@gmail.com To: Wei Huang Cc: Tianfei Zhang , Rosen Xu , dpdk stable Subject: patch 'raw/ifpga: fix build with optimization' has been queued to stable release 20.11.5 Date: Thu, 17 Mar 2022 12:06:27 +0000 Message-Id: <20220317120627.917448-4-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220317120627.917448-1-luca.boccassi@gmail.com> References: <20220315133233.635559-9-luca.boccassi@gmail.com> <20220317120627.917448-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Hi, FYI, your patch has been queued to stable release 20.11.5 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 03/19/22. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/5cb14d74366f08f666e12ec0d8b2e03bcf144812 Thanks. Luca Boccassi --- >From 5cb14d74366f08f666e12ec0d8b2e03bcf144812 Mon Sep 17 00:00:00 2001 From: Wei Huang Date: Wed, 16 Mar 2022 03:26:30 -0400 Subject: [PATCH] raw/ifpga: fix build with optimization [ upstream commit 047c25401d2b4001e7e20200a5ec05868a113290 ] Compile failed with cflag optimization=1 on Ubuntu20.04 with GCC10.3, it reported vendor_id and dev_id may be used uninitialized in function ifpga_rawdev_fill_info(). Actually it's not the truth, the variables are initialized in function ifpga_get_dev_vendor_id(). To avoid such compile error, the variables are initialized when they are defined. Fixes: 9c006c45d0c5 ("raw/ifpga: scan PCIe BDF device tree") Signed-off-by: Wei Huang Acked-by: Tianfei Zhang Acked-by: Rosen Xu --- drivers/raw/ifpga/ifpga_rawdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/raw/ifpga/ifpga_rawdev.c b/drivers/raw/ifpga/ifpga_rawdev.c index e04b791561..cc6223cb28 100644 --- a/drivers/raw/ifpga/ifpga_rawdev.c +++ b/drivers/raw/ifpga/ifpga_rawdev.c @@ -225,7 +225,8 @@ static int ifpga_rawdev_fill_info(struct ifpga_rawdev *ifpga_dev) unsigned int dom, bus, dev; int func; - uint32_t dev_id, vendor_id; + uint32_t dev_id = 0; + uint32_t vendor_id = 0; adapter = ifpga_dev ? ifpga_rawdev_get_priv(ifpga_dev->rawdev) : NULL; if (!adapter) -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2022-03-17 12:05:30.443495190 +0000 +++ 0004-raw-ifpga-fix-build-with-optimization.patch 2022-03-17 12:05:30.304855371 +0000 @@ -1 +1 @@ -From 047c25401d2b4001e7e20200a5ec05868a113290 Mon Sep 17 00:00:00 2001 +From 5cb14d74366f08f666e12ec0d8b2e03bcf144812 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 047c25401d2b4001e7e20200a5ec05868a113290 ] + @@ -14 +15,0 @@ -Cc: stable@dpdk.org @@ -24 +25 @@ -index 26c1366a64..6d4117c5e8 100644 +index e04b791561..cc6223cb28 100644