1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-27 23:22:37 +02:00

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>
Reviewed-on: https://review.coreboot.org/23003
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
This commit is contained in:
Nico Huber 2017-12-27 21:07:33 +01:00
parent 1ca6bef287
commit 7372866ef4

View File

@ -131,7 +131,7 @@ int register_superio(struct superio s)
int is_laptop = 0; int is_laptop = 0;
int laptop_ok = 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, static void internal_chip_writeb(const struct flashctx *flash, uint8_t val,
chipaddr addr); chipaddr addr);
static void internal_chip_writew(const struct flashctx *flash, uint16_t val, static void internal_chip_writew(const struct flashctx *flash, uint16_t val,
@ -360,7 +360,7 @@ int internal_init(void)
} }
#endif #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, static void internal_chip_writeb(const struct flashctx *flash, uint8_t val,
chipaddr addr) chipaddr addr)
{ {