From c35cad52f5acfbf44edd17db424e32311fee75c2 Mon Sep 17 00:00:00 2001 From: Gerson Fernando Budke Date: Thu, 14 May 2020 22:03:39 -0300 Subject: [PATCH] lib: updatehub: Add missing include for FLASH_AREA The conversion from DT_FLASH_AREA to FLASH_AREA macros don't add the storage flash_map.h include file. Fixes: #25332 Signed-off-by: Gerson Fernando Budke --- lib/updatehub/updatehub.c | 1 + lib/updatehub/updatehub_firmware.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lib/updatehub/updatehub.c b/lib/updatehub/updatehub.c index dccbb60137d..ca798b1a173 100644 --- a/lib/updatehub/updatehub.c +++ b/lib/updatehub/updatehub.c @@ -21,6 +21,7 @@ LOG_MODULE_REGISTER(updatehub); #include #include #include +#include #include "include/updatehub.h" #include "updatehub_priv.h" diff --git a/lib/updatehub/updatehub_firmware.c b/lib/updatehub/updatehub_firmware.c index e32864c237e..553f5165424 100644 --- a/lib/updatehub/updatehub_firmware.c +++ b/lib/updatehub/updatehub_firmware.c @@ -4,6 +4,8 @@ * SPDX-License-Identifier: Apache-2.0 */ +#include + #include "updatehub_firmware.h" bool updatehub_get_firmware_version(char *version, int version_len)