soc/intel/alderlake: Move array declaration

Clang does not like array declarations inside plain switch cases. There
are 2 options to fix this: use a block inside the switch statement, or
declare it outside the switch statement. This does the latter.

Change-Id: I9a02136fd63ac171b2bec4647c30c7eece930246
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/64349
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Singer <felixsinger@posteo.net>
This commit is contained in:
Arthur Heymans 2022-05-14 16:16:36 +02:00 committed by Martin L Roth
parent 7e0af339ee
commit 026978bce5
1 changed files with 1 additions and 2 deletions

View File

@ -286,6 +286,7 @@ void soc_lpi_get_constraints(void *unused)
acpigen_write_package(3);
{
char path[32] = { 0 };
/* Emit the device path */
switch (dev->path.type) {
case DEVICE_PATH_PCI:
@ -293,8 +294,6 @@ void soc_lpi_get_constraints(void *unused)
break;
case DEVICE_PATH_APIC:
char path[32] = {0};
/* Lookup CPU id */
for (size_t i = 0; i < CONFIG_MAX_CPUS; i++) {
if (cpu_get_apic_id(i) == dev->path.apic.apic_id) {