From b67922a4ab25a5d14f11d23aebb3a59819f5934d Mon Sep 17 00:00:00 2001 From: Anson Huang Date: Mon, 11 Sep 2017 12:48:16 +0800 Subject: freescale: cpufreq: fix build error using poky tool chain Fix below build error on i.MX8QXP when using poky tool chain: CC plat/freescale/common/cpufreq.c plat/freescale/common/cpufreq.c:27:18: error: "ap_cluster_index" defined but not used [-Werror=unused-const-variable=] Signed-off-by: Anson Huang --- plat/freescale/common/cpufreq.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plat/freescale/common/cpufreq.c b/plat/freescale/common/cpufreq.c index 75f005dd..5a53e1ce 100644 --- a/plat/freescale/common/cpufreq.c +++ b/plat/freescale/common/cpufreq.c @@ -24,9 +24,11 @@ extern sc_ipc_t ipc_handle; +#ifdef PLAT_IMX8QM const static int ap_cluster_index[2] = { SC_R_A53, SC_R_A72, }; +#endif static void imx_cpufreq_set_target(uint32_t cluster_id, unsigned long freq) { -- cgit v1.2.3