From cba2f136ccc6801a8eb6c6f3bf46b7f5fba67266 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Wed, 14 Oct 2020 19:03:18 -0400 Subject: [PATCH] intel_adsp: make idc variable depend on CONFIG_IPM_CAVS_IDC Avoid build warnings by guarding variable with an if. Signed-off-by: Anas Nashif --- soc/xtensa/intel_adsp/common/soc_mp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/soc/xtensa/intel_adsp/common/soc_mp.c b/soc/xtensa/intel_adsp/common/soc_mp.c index ee6792fdda0..5c0b811a7ee 100644 --- a/soc/xtensa/intel_adsp/common/soc_mp.c +++ b/soc/xtensa/intel_adsp/common/soc_mp.c @@ -51,7 +51,9 @@ LOG_MODULE_REGISTER(soc_mp, CONFIG_SOC_LOG_LEVEL); #define IDC_MSG_POWER_UP_EXT(x) IDC_EXTENSION((x) >> 2) +#ifdef CONFIG_IPM_CAVS_IDC static const struct device *idc; +#endif extern void __start(void);