From 33f6b76110875f75bbc1a7135020d85efdfa23b1 Mon Sep 17 00:00:00 2001 From: Fabio Baltieri Date: Tue, 10 Jun 2025 16:56:50 +0000 Subject: [PATCH] drivers: i2c: i2c_dw: only includ cmsis_core on ARM platforms Only include cmsis_core.h on ARM platforms, including it unconditionally as it is now causes a build failure on all other platforms, namely x86 on the weekly build run. Tested with: west build -p -b up_squared/apollo_lake tests/drivers/build_all/led (and others) Signed-off-by: Fabio Baltieri --- drivers/i2c/i2c_dw.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/i2c/i2c_dw.c b/drivers/i2c/i2c_dw.c index e0d316e59a1..5092ccfd01b 100644 --- a/drivers/i2c/i2c_dw.c +++ b/drivers/i2c/i2c_dw.c @@ -8,7 +8,9 @@ */ #include +#ifdef CONFIG_CPU_CORTEX_M #include +#endif #include #include