summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libflashrom.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libflashrom.c b/libflashrom.c
index f90a22cbc..c327c6256 100644
--- a/libflashrom.c
+++ b/libflashrom.c
@@ -383,6 +383,7 @@ _free_ret:
#endif
}
+#ifdef __FLASHROM_LITTLE_ENDIAN__
static int flashrom_layout_parse_fmap(struct flashrom_layout **layout,
struct flashctx *const flashctx, const struct fmap *const fmap)
{
@@ -414,6 +415,7 @@ static int flashrom_layout_parse_fmap(struct flashrom_layout **layout,
*layout = l;
return 0;
}
+#endif /* __FLASHROM_LITTLE_ENDIAN__ */
/**
* @brief Read a layout by searching the flash chip for fmap.