Add two new patches to correct compilation errors in rawhide
Signed-off-by: Al Stone <ahs3@redhat.com>
This commit is contained in:
parent
97df1c2ef7
commit
b8d03463ff
24
dangling-ptr.patch
Normal file
24
dangling-ptr.patch
Normal file
@ -0,0 +1,24 @@
|
||||
diff -Naur acpica-unix2-20211217/source/components/utilities/utdebug.c acpica-unix2-20211217.orig/source/components/utilities/utdebug.c
|
||||
--- acpica-unix2-20211217/source/components/utilities/utdebug.c 2022-03-15 17:05:07.992387565 -0600
|
||||
+++ acpica-unix2-20211217.orig/source/components/utilities/utdebug.c 2021-12-17 10:48:16.000000000 -0700
|
||||
@@ -58,6 +58,10 @@
|
||||
static const char *AcpiGbl_FunctionExitPrefix = "----Exit-";
|
||||
|
||||
|
||||
+#if defined(__GNUC__) && (__GNUC__ > 11)
|
||||
+#pragma GCC diagnostic push
|
||||
+#pragma GCC diagnostic ignored "-Wdangling-pointer"
|
||||
+#endif
|
||||
/*******************************************************************************
|
||||
*
|
||||
* FUNCTION: AcpiUtInitStackPtrTrace
|
||||
@@ -114,6 +110,9 @@
|
||||
AcpiGbl_DeepestNesting = AcpiGbl_NestingLevel;
|
||||
}
|
||||
}
|
||||
+#if defined(__GNUC__) && (__GNUC__ > 11)
|
||||
+#pragma GCC diagnostic pop
|
||||
+#endif
|
||||
|
||||
|
||||
/*******************************************************************************
|
12
uuid-len.patch
Normal file
12
uuid-len.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -Naur acpica-unix2-20211217.orig/source/tools/acpiexec/aeregion.c acpica-unix2-20211217/source/tools/acpiexec/aeregion.c
|
||||
--- acpica-unix2-20211217.orig/source/tools/acpiexec/aeregion.c 2021-12-17 10:48:17.000000000 -0700
|
||||
+++ acpica-unix2-20211217/source/tools/acpiexec/aeregion.c 2022-03-18 15:53:25.032687782 -0600
|
||||
@@ -97,7 +97,7 @@
|
||||
UINT32 Value1;
|
||||
UINT32 Value2;
|
||||
ACPI_RESOURCE *Resource;
|
||||
- char Uuid[ACPI_PRM_INPUT_BUFFER_SIZE + 1];
|
||||
+ char Uuid[UUID_STRING_LENGTH + 1];
|
||||
|
||||
|
||||
ACPI_FUNCTION_NAME (AeRegionHandler);
|
Loading…
Reference in New Issue
Block a user