diff --git a/libflashrom.c b/libflashrom.c index a98d4ba53..15bd40ec9 100644 --- a/libflashrom.c +++ b/libflashrom.c @@ -455,6 +455,7 @@ bool flashrom_flag_get(const struct flashrom_flashctx *const flashctx, const enu } } +#ifdef __FLASHROM_LITTLE_ENDIAN__ static int compare_region_with_dump(const struct romentry *const a, const struct romentry *const b) { if (a->region.start != b->region.end @@ -463,6 +464,7 @@ static int compare_region_with_dump(const struct romentry *const a, const struct return 1; return 0; } +#endif /* __FLASHROM_LITTLE_ENDIAN__ */ int flashrom_layout_read_from_ifd(struct flashrom_layout **const layout, struct flashctx *const flashctx, const void *const dump, const size_t len)