summaryrefslogtreecommitdiffstats
path: root/internal.c
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2017-12-27 21:07:33 +0100
committerNico Huber <nico.h@gmx.de>2017-12-28 10:58:52 +0000
commit7372866ef48f080ecfcee85ed7022fdeb14d2fe8 (patch)
treec470a4492769c300950fbaa336543abe1698da96 /internal.c
parent1ca6bef2877ed4757710494fdd41823fe7122b09 (diff)
downloadflashrom-1.0-rc2.tar.gz
flashrom-1.0-rc2.tar.bz2
flashrom-1.0-rc2.zip
internal: Fix #if guards for big-endian mipsv1.0-rc2
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> Reviewed-on: https://review.coreboot.org/23003 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Diffstat (limited to 'internal.c')
-rw-r--r--internal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal.c b/internal.c
index 276e14bfe..cb02753d3 100644
--- a/internal.c
+++ b/internal.c
@@ -131,7 +131,7 @@ int register_superio(struct superio s)
int is_laptop = 0;
int laptop_ok = 0;
-#if IS_X86 || IS_MIPS
+#if (IS_X86 || IS_MIPS) && defined(__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 @@ int internal_init(void)
}
#endif
-#if IS_X86 || IS_MIPS
+#if (IS_X86 || IS_MIPS) && defined(__FLASHROM_LITTLE_ENDIAN__)
static void internal_chip_writeb(const struct flashctx *flash, uint8_t val,
chipaddr addr)
{