]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ACPICA: Clean up the fix for Issue #900
authorSaket Dumbre <saket.dumbre@intel.com>
Tue, 26 Dec 2023 21:32:56 +0000 (13:32 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 12 Apr 2024 13:20:05 +0000 (15:20 +0200)
ACPICA commit b6b38edb0c18017af0bd2aff4eaa502810c8873f

Link: https://github.com/acpica/acpica/commit/b6b38edb
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/utdebug.c

index 2f37d673e285656a42852fd8fb454b26c81105e9..98027d2f7bfbbd731a2904bebfde3473fc5fcaa8 100644 (file)
@@ -42,6 +42,7 @@ void acpi_ut_init_stack_ptr_trace(void)
 #pragma GCC diagnostic ignored "-Wdangling-pointer="
 #endif
        acpi_gbl_entry_stack_pointer = &current_sp;
+#pragma GCC diagnostic pop
 }
 
 /*******************************************************************************
@@ -61,8 +62,12 @@ void acpi_ut_track_stack_ptr(void)
        acpi_size current_sp;
 
        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;
-#pragma GCC diagnostic pop
+#pragma GCC diagnostic popmake
        }
 
        if (acpi_gbl_nesting_level > acpi_gbl_deepest_nesting) {