From 7372866ef48f080ecfcee85ed7022fdeb14d2fe8 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Wed, 27 Dec 2017 21:07:33 +0100 Subject: [PATCH] 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 Reviewed-on: https://review.coreboot.org/23003 Tested-by: build bot (Jenkins) Reviewed-by: Philipp Deppenwiese --- internal.c | 4 ++-- 1 file 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) {