From 4e8e0748e8b8bf6fdf10308d80ec0943adea23bf Mon Sep 17 00:00:00 2001 From: Rajavardhan Gundi Date: Mon, 19 Nov 2018 11:40:49 +0530 Subject: [PATCH] storage: flash_map: Make flash_map as extern flash_map should be made extern in flash_map.c since it is defined in flash_map_default.c. Not having flash_map as extern will result in build errors. Signed-off-by: Rajavardhan Gundi --- subsys/storage/flash_map/flash_map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/storage/flash_map/flash_map.c b/subsys/storage/flash_map/flash_map.c index 45e9b9e3085..5a7606d36ee 100644 --- a/subsys/storage/flash_map/flash_map.c +++ b/subsys/storage/flash_map/flash_map.c @@ -40,7 +40,7 @@ static const struct driver_map_entry flash_drivers_map[] = { #endif }; -const struct flash_area *flash_map; +extern const struct flash_area *flash_map; extern const int flash_map_entries; static struct device *flash_dev[ARRAY_SIZE(flash_drivers_map)];