Fix build error
Signed-off-by: cherry530 <xuping33@huawei.com> (cherry picked from commit 35d0cca39133fb4e1c6d588938d0caa2a371283c)
This commit is contained in:
parent
9ac39cc532
commit
de22e4f268
23
backport-Fix-build-error-to-change-char-type.patch
Normal file
23
backport-Fix-build-error-to-change-char-type.patch
Normal file
@ -0,0 +1,23 @@
|
||||
From 7f4c8df2adb258d61be3df7cee24afef2901629d Mon Sep 17 00:00:00 2001
|
||||
From: Guillaume Gardet <guillaume.gardet@arm.com>
|
||||
Date: Thu, 20 Aug 2020 09:55:47 +0000
|
||||
Subject: [PATCH 1/1] char can be unsigned on arm, so set signed explicitly as
|
||||
the check expects it can be negative
|
||||
|
||||
---
|
||||
fcnsq.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/fcnsq.c b/fcnsq.c
|
||||
index 1597cd5..c59c428 100644
|
||||
--- a/fcnsq.c
|
||||
+++ b/fcnsq.c
|
||||
@@ -381,7 +381,7 @@ int main(int argc, char *argv[])
|
||||
u64 wwnn = 0;
|
||||
int rc = 0;
|
||||
enum commands cmd = 0;
|
||||
- char c;
|
||||
+ signed char c;
|
||||
uintmax_t wwnn_tmp = 0;
|
||||
|
||||
while(1) {
|
||||
@ -1,6 +1,6 @@
|
||||
Name: fcoe-utils
|
||||
Version: 1.0.33
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: Fibre Channel over Ethernet utilities
|
||||
License: GPLv2
|
||||
URL: https://github.com/morbidrsa/fcoe-utils
|
||||
@ -11,7 +11,7 @@ Patch1: backport-01-fix_VLAN_device_name_overflow_check.patch
|
||||
Patch2: backport-02-string_op_truncation_format_trauncation.patch
|
||||
Patch3: backport-03-use-of-uninitialized-values-detected-during-LTO.patch
|
||||
#This patch refer to ubuntu's version
|
||||
|
||||
Patch4: backport-Fix-build-error-to-change-char-type.patch
|
||||
|
||||
BuildRequires: autoconf automake libpciaccess-devel libtool lldpad-devel systemd
|
||||
Requires: lldpad iproute device-mapper-multipath
|
||||
@ -67,6 +67,9 @@ done
|
||||
%{_mandir}/man8/*
|
||||
|
||||
%changelog
|
||||
* Wed Mar 03 2022 xu_ping <xuping33@huawei.com> - 1.0.33-3
|
||||
- Backport upstream patch to avoid non-X86 build break.
|
||||
|
||||
* Wed Aug 2021 sunguoshuai <sunguoshuai@huawei.com> - 1.0.33-2
|
||||
- Fix fcoe.service start error
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user