Nico Huber has uploaded this change for review.
internal: Fix #if guards for big-endian mips
Newer GCC still warns on big-endian mips, cf. 60210de
(internal: Fix warnings about unused constants).
Change-Id: Id0508c5241a7bd61b8d92d631cdf42ef7829a8a9
Signed-off-by: Nico Huber <nico.h@gmx.de>
---
M internal.c
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/03/23003/1
diff --git a/internal.c b/internal.c
index 276e14b..88f17a4 100644
--- a/internal.c
+++ b/internal.c
@@ -131,7 +131,7 @@
int is_laptop = 0;
int laptop_ok = 0;
-#if IS_X86 || IS_MIPS
+#if (IS_X86 || IS_MIPS) && __FLASHROM_LITTLE_ENDIAN__
static void internal_chip_writeb(const struct flashctx *flash, uint8_t val,
chipaddr addr);
static void internal_chip_writew(const struct flashctx *flash, uint16_t val,
@@ -360,7 +360,7 @@
}
#endif
-#if IS_X86 || IS_MIPS
+#if (IS_X86 || IS_MIPS) && __FLASHROM_LITTLE_ENDIAN__
static void internal_chip_writeb(const struct flashctx *flash, uint8_t val,
chipaddr addr)
{
To view, visit change 23003. To unsubscribe, or for help writing mail filters, visit settings.