acpica-tools/0001-fix-building-error-caused-by-variable-CurrentSp.patch
2024-03-07 09:53:20 +08:00

26 lines
719 B
Diff

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