From bbf84aef8c133f97ef3b1dccf522327c91b74dd2 Mon Sep 17 00:00:00 2001 From: r4v3n6101 Date: Sun, 25 Oct 2026 11:12:01 +0300 Subject: [PATCH] loader: allow an unused PSCI table on Kria K26 Kria K26 uses the ZCU102 CPU table but defines `ARM_PSCI_UNAVAILABLE`, so only the compile-time size assertion references it. Annotate that table as unused to avoid Clang's `-Wunneeded-internal-declaration` error, while retaining the CPU-count check and ZCU102's PSCI path. Fixes #562. Signed-off-by: r4v3n6101 --- loader/src/aarch64/cpus.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/loader/src/aarch64/cpus.c b/loader/src/aarch64/cpus.c index 327ab9b20..fec405f24 100644 --- a/loader/src/aarch64/cpus.c +++ b/loader/src/aarch64/cpus.c @@ -48,7 +48,8 @@ uint64_t plat_get_hw_id(int logical_cpu) #if defined(CONFIG_PLAT_TQMA8XQP1GB) static const size_t psci_target_cpus[4] = {0x00, 0x01, 0x02, 0x03}; #elif defined(CONFIG_PLAT_ZYNQMP_ZCU102) -static const size_t psci_target_cpus[4] = {0x00, 0x01, 0x02, 0x03}; +/* Only the size is used on Kria K26, where PSCI is unavailable. */ +static const size_t psci_target_cpus[4] __attribute__((unused)) = {0x00, 0x01, 0x02, 0x03}; #elif defined(CONFIG_PLAT_IMX8MM_EVK) static const size_t psci_target_cpus[4] = {0x00, 0x01, 0x02, 0x03}; #elif defined(CONFIG_PLAT_IMX8MQ_EVK) || defined(CONFIG_PLAT_MAAXBOARD)