!84 Fix compile error with gcc 12.3
From: @swf504 Reviewed-by: @Zht-Try, @liuzhiqiang26 Signed-off-by: @liuzhiqiang26
This commit is contained in:
commit
664d38b886
41
0040-initialized-status-variable-before-use.patch
Normal file
41
0040-initialized-status-variable-before-use.patch
Normal file
@ -0,0 +1,41 @@
|
||||
From a8d21b9b550dde7d3e7ffc0cd1171528a136165f Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Brzezinka <sebastian.brzezinka@intel.com>
|
||||
Date: Wed, 18 Jan 2023 19:44:45 +0100
|
||||
Subject: [PATCH] =?UTF-8?q?lib/ioat:=20initialized=20=E2=80=98status?=
|
||||
=?UTF-8?q?=E2=80=99=20variable=20before=20use?=
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
This patch fix `gcc-12` warning: #2829
|
||||
|
||||
```
|
||||
warning: ‘status’ may be used uninitialized [-Wmaybe-uninitialized]
|
||||
ioat.c:360:18: note: ‘status’ was declared here
|
||||
360 | uint64_t status;
|
||||
| ^~~~~~
|
||||
```
|
||||
|
||||
Signed-off-by: Sebastian Brzezinka <sebastian.brzezinka@intel.com>
|
||||
Change-Id: I8d010256e51cf6f1b9047d054773cb85d435ccf9
|
||||
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16339
|
||||
Reviewed-by: Jim Harris <james.r.harris@intel.com>
|
||||
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
|
||||
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
|
||||
---
|
||||
lib/ioat/ioat.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/lib/ioat/ioat.c b/lib/ioat/ioat.c
|
||||
index 479f73dd875..949afea850a 100644
|
||||
--- a/lib/ioat/ioat.c
|
||||
+++ b/lib/ioat/ioat.c
|
||||
@@ -357,7 +357,7 @@ static int
|
||||
ioat_channel_start(struct spdk_ioat_chan *ioat)
|
||||
{
|
||||
uint8_t xfercap, version;
|
||||
- uint64_t status;
|
||||
+ uint64_t status = 0;
|
||||
int i, num_descriptors;
|
||||
uint64_t comp_update_bus_addr = 0;
|
||||
uint64_t phys_addr;
|
||||
@ -4,7 +4,7 @@
|
||||
|
||||
Name: spdk
|
||||
Version: 21.01.1
|
||||
Release: 14
|
||||
Release: 15
|
||||
Summary: Set of libraries and utilities for high performance user-mode storage
|
||||
License: BSD and MIT
|
||||
URL: http://spdk.io
|
||||
@ -48,6 +48,7 @@ Patch36: 0036-scripts-nvmf_perf-fix-pylint-E1111-error-assignment-.patch
|
||||
Patch37: 0037-scripts-nvmf_perf-check-extra_params-key-berofe-acce.patch
|
||||
Patch38: 0038-nvme-rdma-Only-wait-for-the-RDMA-event-if-spdk_rdma_.patch
|
||||
Patch39: 0039-Cleanup-Fix-boolean-arg-in-fio-plugin.patch
|
||||
Patch40: 0040-initialized-status-variable-before-use.patch
|
||||
|
||||
%define package_version %{version}-%{release}
|
||||
|
||||
@ -224,6 +225,9 @@ mv doc/output/html/ %{install_docdir}
|
||||
|
||||
|
||||
%changelog
|
||||
* Sat Aug 26 2023 Weifeng Su <suweifeng1@huawei.com> - 21.01.1-15
|
||||
- backport patch to fix gcc-12 warning
|
||||
|
||||
* Tue May 30 2023 Jia Chao <jiac13@chinaunicom.cn> - 21.01.1-14
|
||||
- Fix: tools do not need require %{?_isa} package for it's noarch.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user