Skip to content

Commit 5a02527

Browse files
SaketADumbrerafaeljw
authored andcommitted
ACPICA: Clean up the fix for Issue #900
ACPICA commit b6b38edb0c18017af0bd2aff4eaa502810c8873f Link: acpica/acpica@b6b38edb Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 8664583 commit 5a02527

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

drivers/acpi/acpica/utdebug.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ void acpi_ut_init_stack_ptr_trace(void)
4242
#pragma GCC diagnostic ignored "-Wdangling-pointer="
4343
#endif
4444
acpi_gbl_entry_stack_pointer = &current_sp;
45+
#pragma GCC diagnostic pop
4546
}
4647

4748
/*******************************************************************************
@@ -61,8 +62,12 @@ void acpi_ut_track_stack_ptr(void)
6162
acpi_size current_sp;
6263

6364
if (&current_sp < acpi_gbl_lowest_stack_pointer) {
65+
#pragma GCC diagnostic push
66+
#if defined(__GNUC__) && __GNUC__ >= 12
67+
#pragma GCC diagnostic ignored "-Wdangling-pointer="
68+
#endif
6469
acpi_gbl_lowest_stack_pointer = &current_sp;
65-
#pragma GCC diagnostic pop
70+
#pragma GCC diagnostic popmake
6671
}
6772

6873
if (acpi_gbl_nesting_level > acpi_gbl_deepest_nesting) {

0 commit comments

Comments
 (0)