mirror of
https://review.coreboot.org/flashrom.git
synced 2025-09-13 16:51:58 +02:00
Add guard for compare_region_with_dump()
Big endian architectures don't use the function. This fixes a FTBFS on big endian architectures. Change-Id: Ied3e12352e7fde73355f6a8a226eea0e5b101721 Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/88817 Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:

committed by
Anastasia Klimchuk

parent
182902ee01
commit
f74f02e22c
@@ -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)
|
||||
|
Reference in New Issue
Block a user