summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/include/fmap.h3
-rw-r--r--src/lib/fmap.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/include/fmap.h b/src/include/fmap.h
index 671e802775..6be6fee974 100644
--- a/src/include/fmap.h
+++ b/src/include/fmap.h
@@ -23,6 +23,9 @@
#include <region.h>
#include <fmap_serialized.h>
+/* Locate the fmap directory. Return 0 on success, < 0 on error. */
+int find_fmap_directory(struct region_device *fmrd);
+
/* Locate the named area in the fmap and fill in a region device representing
* that area. The region is a sub-region of the readonly boot media. Return
* 0 on success, < 0 on error. */
diff --git a/src/lib/fmap.c b/src/lib/fmap.c
index f2087c3f69..dea34bc02b 100644
--- a/src/lib/fmap.c
+++ b/src/lib/fmap.c
@@ -28,7 +28,7 @@
* See http://code.google.com/p/flashmap/ for more information on FMAP.
*/
-static int find_fmap_directory(struct region_device *fmrd)
+int find_fmap_directory(struct region_device *fmrd)
{
const struct region_device *boot;
struct fmap *fmap;