summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2017-12-01 18:19:43 +0000
committerNico Huber <nico.h@gmx.de>2017-12-09 22:45:44 +0000
commit60210dea9ed2a8b6349e95580487bf8195b144f8 (patch)
tree1a8d4479e90c650c4e75f56dbe7f0427ced9dd10
parentfcbdc0a00763217828792c8c95069154117dc68b (diff)
downloadflashrom-60210dea9ed2a8b6349e95580487bf8195b144f8.tar.gz
flashrom-60210dea9ed2a8b6349e95580487bf8195b144f8.tar.bz2
flashrom-60210dea9ed2a8b6349e95580487bf8195b144f8.zip
internal: Fix warnings about unused constants
By adding more #if guards, fix warnings about unused constants that are enabled by default in newer GCC versions. Change-Id: Ib3b6d7c0c2fadc4faeab971673bfadb1a6d25919 Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/22669 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: David Hendricks <david.hendricks@gmail.com> Reviewed-by: Patrick Rudolph <siro@das-labor.org> (cherry picked from commit 97a90497a7d0df5076b4412c3e995a7e4a2ff8cc) Reviewed-on: https://review.coreboot.org/22800
-rw-r--r--internal.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal.c b/internal.c
index 4062b6434..276e14bfe 100644
--- a/internal.c
+++ b/internal.c
@@ -131,6 +131,7 @@ int register_superio(struct superio s)
int is_laptop = 0;
int laptop_ok = 0;
+#if IS_X86 || IS_MIPS
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,
@@ -155,6 +156,7 @@ static const struct par_master par_master_internal = {
.chip_writel = internal_chip_writel,
.chip_writen = fallback_chip_writen,
};
+#endif
enum chipbustype internal_buses_supported = BUS_NONE;
@@ -358,6 +360,7 @@ int internal_init(void)
}
#endif
+#if IS_X86 || IS_MIPS
static void internal_chip_writeb(const struct flashctx *flash, uint8_t val,
chipaddr addr)
{
@@ -400,3 +403,4 @@ static void internal_chip_readn(const struct flashctx *flash, uint8_t *buf,
mmio_readn((void *)addr, buf, len);
return;
}
+#endif