summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/acpi/acpigen.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/acpi/acpigen.c b/src/acpi/acpigen.c
index e61954fd7f..7ca4f021dd 100644
--- a/src/acpi/acpigen.c
+++ b/src/acpi/acpigen.c
@@ -1764,6 +1764,10 @@ void acpigen_write_dsm(const char *uuid, void (**callbacks)(void *), size_t coun
* bit 0: other functions than 0 are supported
* bits 1-x: function x supported
*/
+/* On GCC aarch64 the compiler is worried about alloca() having unbounded stack usage. */
+#if defined(__GNUC__) && !defined(__clang__)
+#pragma GCC diagnostic ignored "-Wstack-usage="
+#endif
static void acpigen_dsm_uuid_enum_functions(const struct dsm_uuid *id)
{
const size_t bytes = DIV_ROUND_UP(id->count, BITS_PER_BYTE);