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 <rajavardhan.gundi@intel.com>
This commit is contained in:
Rajavardhan Gundi 2018-11-19 11:40:49 +05:30 committed by Carles Cufí
parent c326ae729f
commit 4e8e0748e8

View file

@ -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)];