1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
Description: Fix compile failure on big endian
Author: Mario Limonciello <superm1@debian.org>
---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:
Origin: other
Forwarded: no
Last-Update: 2025-08-18
Index: flashrom/libflashrom.c
===================================================================
--- flashrom.orig/libflashrom.c
+++ flashrom/libflashrom.c
@@ -455,6 +455,7 @@ bool flashrom_flag_get(const struct flas
}
}
+#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(cons
return 1;
return 0;
}
+#endif
int flashrom_layout_read_from_ifd(struct flashrom_layout **const layout, struct flashctx *const flashctx,
const void *const dump, const size_t len)
|