From ac4eb322931bb341f11fdff1bfc1c07c9cee445b Mon Sep 17 00:00:00 2001 From: Anton Gerasimov Date: Mon, 20 May 2019 14:23:02 +0200 Subject: [PATCH] arch: arm: fix "template with C linkage" in cmsis.h The error manifests itself when including cmsis.h from C++ code Signed-off-by: Anton Gerasimov --- include/arch/arm/cortex_m/cmsis.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/arch/arm/cortex_m/cmsis.h b/include/arch/arm/cortex_m/cmsis.h index 07d8090e900..67252986449 100644 --- a/include/arch/arm/cortex_m/cmsis.h +++ b/include/arch/arm/cortex_m/cmsis.h @@ -14,12 +14,12 @@ #ifndef ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_M_CMSIS_H_ #define ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_M_CMSIS_H_ +#include + #ifdef __cplusplus extern "C" { #endif -#include - /* CP10 Access Bits */ #define CPACR_CP10_Pos 20U #define CPACR_CP10_Msk (3UL << CPACR_CP10_Pos)