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 BF262A0093 for ; Thu, 17 Mar 2022 15:18:11 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B381F4067B; Thu, 17 Mar 2022 15:18:11 +0100 (CET) Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by mails.dpdk.org (Postfix) with ESMTP id 1846E410EC for ; Thu, 17 Mar 2022 15:18:10 +0100 (CET) Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 503C73F325 for ; Thu, 17 Mar 2022 14:18:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1647526689; bh=3yXQ+oaowxWW3slf595CvwWs2l2MrE1EQMidb/WhgZ4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=IyAT4JrLEGAOf7fQ6pKmNe/JJI9dyOMhqoDA8Ohxe8NhX8+H0yWkq4UpFF9et2PU6 zXHr+oFFCvbUxRWxPW4tguGH9MXpZCbqBzwGS5ZIlqyHaHINiM2qcZeLf7VMvxQfla FWNnsROxpbyBYEGsGWkUns7g+V6Uo3XlZ9zBqOXyJUpwo1belZOhsk6LKM8OdV/fQp X7ct6MeeLoob/Jp+hBfvNe3h0ml7Lnew3JTif/UCOvRU01YiZ37Ks7VcD7JvmB0wjs E+jFCyvOIqop+b5VMsud18E6ca79gpKFJloQ/j4puTFkzj4KIDKjkc4+3oq8abyoNf Wk81C6Iy+eDsQ== Received: by mail-ej1-f70.google.com with SMTP id 13-20020a170906328d00b006982d0888a4so2976804ejw.9 for ; Thu, 17 Mar 2022 07:18:09 -0700 (PDT) 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=3yXQ+oaowxWW3slf595CvwWs2l2MrE1EQMidb/WhgZ4=; b=krb6bavguhjZW3xxO6nVhEoIhKIzAXYzoeqXvdWMpQLC+jIphBX+82ApvQP/lIbuKz fpFElhL+tVzVbkJd7QI5hA2xzICH6Y8IKhqo0o3LBxuX5Hxlw1RSdq2zomP7IuEVKN0O MUqWL5a+OL0k2j6CsxbBKQ4aD9ULPDlldCmbCJgE5tKf5WpEv8BwI38strhs9gMAtTtf wzmwVm2k8L+wxKdYCUS7inXSjR6wVSGiRdxbsR2EL8tAGgcTNyZcjei72UFhhX/xM/m7 7ACVusaQQ5PQ4zGPmT+UpuH10ajZWd1NYyOy9uby3Om9Yx6Kzii4lT+TesFovB4rcqyV VoEQ== X-Gm-Message-State: AOAM532lio6Yhy6XF0pACXfV/o3rMZhD9IOnzIJTYIYJKuN2XpDBOWtr dH9z0qkl4oWZwa+KC18QeXcVWvhZfWdP554APQHY1HHF4uT/+C2vjARnzGT2wRazSybUibg2vnj nej6h9CcM+DSvZ/7D21i1dLSU X-Received: by 2002:a50:d4d2:0:b0:410:9fa2:60d6 with SMTP id e18-20020a50d4d2000000b004109fa260d6mr4726841edj.35.1647526687974; Thu, 17 Mar 2022 07:18:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeeoDGzRvN0QF7Zad0KcplUiFs/7+XV6/The05c1Y+o8mk5mB1kmgBge5efLQEW65Wua01bw== X-Received: by 2002:a50:d4d2:0:b0:410:9fa2:60d6 with SMTP id e18-20020a50d4d2000000b004109fa260d6mr4726823edj.35.1647526687767; Thu, 17 Mar 2022 07:18:07 -0700 (PDT) Received: from localhost.localdomain (068-133-067-156.ip-addr.inexio.net. [156.67.133.68]) by smtp.gmail.com with ESMTPSA id p22-20020a17090664d600b006df6790a519sm2525197ejn.116.2022.03.17.07.18.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Mar 2022 07:18:07 -0700 (PDT) From: christian.ehrhardt@canonical.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 19.11.12 Date: Thu, 17 Mar 2022 15:17:46 +0100 Message-Id: <20220317141747.1955930-8-christian.ehrhardt@canonical.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220317141747.1955930-1-christian.ehrhardt@canonical.com> References: <20220317141747.1955930-1-christian.ehrhardt@canonical.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 19.11.12 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/cpaelzer/dpdk-stable-queue This queued commit can be viewed at: https://github.com/cpaelzer/dpdk-stable-queue/commit/ce19f077292a0e53b775e86fd2094a7a358688e3 Thanks. Christian Ehrhardt --- >From ce19f077292a0e53b775e86fd2094a7a358688e3 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 b385e17622..cc23a27fed 100644 --- a/drivers/raw/ifpga/ifpga_rawdev.c +++ b/drivers/raw/ifpga/ifpga_rawdev.c @@ -231,7 +231,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.35.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2022-03-17 14:33:42.418534053 +0100 +++ 0008-raw-ifpga-fix-build-with-optimization.patch 2022-03-17 14:33:41.876623055 +0100 @@ -1 +1 @@ -From 047c25401d2b4001e7e20200a5ec05868a113290 Mon Sep 17 00:00:00 2001 +From ce19f077292a0e53b775e86fd2094a7a358688e3 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 b385e17622..cc23a27fed 100644 @@ -27 +28 @@ -@@ -225,7 +225,8 @@ static int ifpga_rawdev_fill_info(struct ifpga_rawdev *ifpga_dev) +@@ -231,7 +231,8 @@ static int ifpga_rawdev_fill_info(struct ifpga_rawdev *ifpga_dev)