ACPICA: Fix GCC 12 dangling-pointer warning
authorPhilip Prindeville <philipp@redfish-solutions.com>
Wed, 12 Apr 2023 16:18:20 +0000 (10:18 -0600)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 10 Jul 2023 13:21:03 +0000 (15:21 +0200)
commit7c94858ec17dae9071fa3bdf6b005967b9f146f4
treee3f0a485369ebcb3f9ec1b30d76818023cf8e473
parent06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5
ACPICA: Fix GCC 12 dangling-pointer warning

ACPICA commit aea0a5cfce262ce2ab16fd96d87c12cf5e756380

We're storing a persistent pointer to an ephemeral local variable
which technically is a dangling pointer and the compiler is correct.
However, since we never indirect the pointer, this is a safe
operation and we can suppress the warning.

Also, some C run-times (like MUSL) aren't including <stdint.h>
indirectly so we must include it explicitly or we won't have the
type definition for uintptr_t.

Fixes issue #867.

Link: https://github.com/acpica/acpica/commit/aea0a5cf
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/utdebug.c
include/acpi/platform/aclinux.h