From 2c4d8e981e8bce36f90caa964b52a5d7dce57159 Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Thu, 19 Nov 2020 17:38:36 +0100 Subject: [PATCH] debug: explicitly include ipc/trace.h where panic() is called ipc/trace.h contains definitions for all the SOF_IPC_PANIC_* macros, it should be included explicitly everywhere, where those macros are used. Signed-off-by: Guennadi Liakhovetski --- src/arch/xtensa/init.c | 3 +++ src/arch/xtensa/lib/cpu.c | 1 + src/drivers/imx/ipc.c | 1 + src/include/sof/spinlock.h | 1 + src/platform/baytrail/include/platform/platform.h | 1 + src/platform/haswell/include/platform/platform.h | 1 + src/platform/intel/cavs/boot_loader.c | 1 + 7 files changed, 9 insertions(+) diff --git a/src/arch/xtensa/init.c b/src/arch/xtensa/init.c index c255b4561..424ac1cf1 100644 --- a/src/arch/xtensa/init.c +++ b/src/arch/xtensa/init.c @@ -12,11 +12,14 @@ #include "xtos-internal.h" #include +#include #include #include #include #include +#include + #include #include #include diff --git a/src/arch/xtensa/lib/cpu.c b/src/arch/xtensa/lib/cpu.c index 9452b3e5c..2eda47fa6 100644 --- a/src/arch/xtensa/lib/cpu.c +++ b/src/arch/xtensa/lib/cpu.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include diff --git a/src/drivers/imx/ipc.c b/src/drivers/imx/ipc.c index 10663c2cd..4a7276536 100644 --- a/src/drivers/imx/ipc.c +++ b/src/drivers/imx/ipc.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include diff --git a/src/include/sof/spinlock.h b/src/include/sof/spinlock.h index f387b4ae6..e3a5df290 100644 --- a/src/include/sof/spinlock.h +++ b/src/include/sof/spinlock.h @@ -15,6 +15,7 @@ #include #include +#include #include diff --git a/src/platform/baytrail/include/platform/platform.h b/src/platform/baytrail/include/platform/platform.h index 99b724a1b..62874679a 100644 --- a/src/platform/baytrail/include/platform/platform.h +++ b/src/platform/baytrail/include/platform/platform.h @@ -25,6 +25,7 @@ #include #include #include +#include #include #include diff --git a/src/platform/haswell/include/platform/platform.h b/src/platform/haswell/include/platform/platform.h index dd10aa93e..49a400f5f 100644 --- a/src/platform/haswell/include/platform/platform.h +++ b/src/platform/haswell/include/platform/platform.h @@ -21,6 +21,7 @@ #include #include #include +#include #include #include diff --git a/src/platform/intel/cavs/boot_loader.c b/src/platform/intel/cavs/boot_loader.c index 0670d17dc..4c79ddb65 100644 --- a/src/platform/intel/cavs/boot_loader.c +++ b/src/platform/intel/cavs/boot_loader.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include