Commit 5a025277 authored by Saket Dumbre's avatar Saket Dumbre Committed by Rafael J. Wysocki

ACPICA: Clean up the fix for Issue #900

ACPICA commit b6b38edb0c18017af0bd2aff4eaa502810c8873f

Link: https://github.com/acpica/acpica/commit/b6b38edbSigned-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 86645830
...@@ -42,6 +42,7 @@ void acpi_ut_init_stack_ptr_trace(void) ...@@ -42,6 +42,7 @@ void acpi_ut_init_stack_ptr_trace(void)
#pragma GCC diagnostic ignored "-Wdangling-pointer=" #pragma GCC diagnostic ignored "-Wdangling-pointer="
#endif #endif
acpi_gbl_entry_stack_pointer = &current_sp; acpi_gbl_entry_stack_pointer = &current_sp;
#pragma GCC diagnostic pop
} }
/******************************************************************************* /*******************************************************************************
...@@ -61,8 +62,12 @@ void acpi_ut_track_stack_ptr(void) ...@@ -61,8 +62,12 @@ void acpi_ut_track_stack_ptr(void)
acpi_size current_sp; acpi_size current_sp;
if (&current_sp < acpi_gbl_lowest_stack_pointer) { if (&current_sp < acpi_gbl_lowest_stack_pointer) {
#pragma GCC diagnostic push
#if defined(__GNUC__) && __GNUC__ >= 12
#pragma GCC diagnostic ignored "-Wdangling-pointer="
#endif
acpi_gbl_lowest_stack_pointer = &current_sp; acpi_gbl_lowest_stack_pointer = &current_sp;
#pragma GCC diagnostic pop #pragma GCC diagnostic popmake
} }
if (acpi_gbl_nesting_level > acpi_gbl_deepest_nesting) { if (acpi_gbl_nesting_level > acpi_gbl_deepest_nesting) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment