!48 fixed compilation errors

From: @guojunding 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
This commit is contained in:
openeuler-ci-bot 2024-03-07 04:10:18 +00:00 committed by Gitee
commit e4dcd1db6f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From dd222c68bcab456f0230e6cd737969ccd84307fd Mon Sep 17 00:00:00 2001
From: guojunding <guojunding@kylinos.cn>
Date: Thu, 7 Mar 2024 09:27:56 +0800
Subject: [PATCH] fix building error caused by variable 'CurrentSp'
---
source/components/utilities/utdebug.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/source/components/utilities/utdebug.c b/source/components/utilities/utdebug.c
index 2f60bca..509815f 100644
--- a/source/components/utilities/utdebug.c
+++ b/source/components/utilities/utdebug.c
@@ -74,7 +74,7 @@ void
AcpiUtInitStackPtrTrace (
void)
{
- ACPI_SIZE CurrentSp;
+ static ACPI_SIZE CurrentSp;
#pragma GCC diagnostic push
--
2.27.0

View File

@ -1,6 +1,6 @@
Name: acpica-tools
Version: 20210604
Release: 5
Release: 6
Summary: Tools for OS-independent reference implementation of ACPI
License: GPLv2
@ -16,6 +16,8 @@ Patch0003: cve-2017-13695.patch
Patch0004: openEuler-harden.patch
Patch0005: 0001-add-loongarch64-support-for-acpica-tools.patch
Patch0006: 0001-Fix-GCC-12-dangling-pointer-warning.patch
Patch0007: 0001-fix-building-error-caused-by-variable-CurrentSp.patch
BuildRequires: bison patchutils flex gcc
Provides: acpixtract >= 20120913-7 iasl = %{version}-%{release} acpidump >= 20100513-5
Provides: pmtools = %{version}-%{release}
@ -90,6 +92,9 @@ fi
%{_docdir}/*
%changelog
* Thu Mar 7 2024 guojunding <guojunding@kylinos.cn> - 20210604-6
- fix building error caused by variable 'CurrentSp'
* Wed Mar 6 2024 guojunding <guojunding@kylinos.cn> - 20210604-5
- support clang build