From dc83526368a70345de001c228c4bb7f7784e62a5 Mon Sep 17 00:00:00 2001 From: Michal Lenc Date: Thu, 31 Aug 2023 11:47:30 +0200 Subject: [PATCH] samv7: include mpu.h in sam_boot_image.c to avoid compilation warnings Header file mpu.h was not included although mpu_control() function was used. Signed-off-by: Michal Lenc --- boards/arm/samv7/common/src/sam_boot_image.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/boards/arm/samv7/common/src/sam_boot_image.c b/boards/arm/samv7/common/src/sam_boot_image.c index b3bf55cb58..e6934a555c 100644 --- a/boards/arm/samv7/common/src/sam_boot_image.c +++ b/boards/arm/samv7/common/src/sam_boot_image.c @@ -36,6 +36,10 @@ #include "arm_internal.h" #include "barriers.h" +#ifdef CONFIG_ARM_MPU +# include "mpu.h" +#endif + #ifdef CONFIG_BOARDCTL_BOOT_IMAGE /****************************************************************************