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 CB0F9A04FF for ; Mon, 21 Mar 2022 15:44:06 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C617D427EB; Mon, 21 Mar 2022 15:44:06 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id C2B50427E9 for ; Mon, 21 Mar 2022 15:44:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1647873845; 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=GzyJ9kXBaAMpdDGhSqdkQX7G1QV0t+3sBr7QdEebQ68=; b=L3w8HYSJYKPNYAOxC9kgUlyC9wpahE3jC+E9rKMS9ps+V8dPdTOKe4QRDwLh1FTh97FHkT uL5vH/S89TlJpyQFnJGG7uq0KZi6QLYTGuua9jA2hIrtVpRBZ/z3OfWQmkJkk0dfcmVVcI VFZntsAoc7Sh0k5RpMTMtnJ1wBwgcdo= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-623-7xEZwdHENJCZhR9NoI-q5g-1; Mon, 21 Mar 2022 10:44:01 -0400 X-MC-Unique: 7xEZwdHENJCZhR9NoI-q5g-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id EA314380406C; Mon, 21 Mar 2022 14:44:00 +0000 (UTC) Received: from rh.Home (unknown [10.39.195.33]) by smtp.corp.redhat.com (Postfix) with ESMTP id E4F2843E387; Mon, 21 Mar 2022 14:43:59 +0000 (UTC) From: Kevin Traynor To: Wei Huang Cc: Tianfei Zhang , Rosen Xu , dpdk stable Subject: patch 'raw/ifpga: fix build with optimization' has been queued to stable release 21.11.1 Date: Mon, 21 Mar 2022 14:43:40 +0000 Message-Id: <20220321144340.64983-4-ktraynor@redhat.com> In-Reply-To: <20220321144340.64983-1-ktraynor@redhat.com> References: <20220321144340.64983-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=ktraynor@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" 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 21.11.1 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/22/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/kevintraynor/dpdk-stable This queued commit can be viewed at: https://github.com/kevintraynor/dpdk-stable/commit/dec4b1b89ec3e34c26537e3acd76b628d75d7253 Thanks. Kevin --- >From dec4b1b89ec3e34c26537e3acd76b628d75d7253 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 2d3c4fd229..75800aed3a 100644 --- a/drivers/raw/ifpga/ifpga_rawdev.c +++ b/drivers/raw/ifpga/ifpga_rawdev.c @@ -226,5 +226,6 @@ 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; -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2022-03-21 14:24:08.510406455 +0000 +++ 0004-raw-ifpga-fix-build-with-optimization.patch 2022-03-21 14:24:08.415777668 +0000 @@ -1 +1 @@ -From 047c25401d2b4001e7e20200a5ec05868a113290 Mon Sep 17 00:00:00 2001 +From dec4b1b89ec3e34c26537e3acd76b628d75d7253 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 2d3c4fd229..75800aed3a 100644