1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-04 15:25:17 +02:00

tree: Make internal variables static

All these variables are only used in the files they are defined in, so
they can be made static.

(Backported as it untangles aliased global objects.)

Change-Id: I1e55138adef540e9d3a2237aa5b289cb338c0608
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/33747
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/62612
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Jacob Garber
2019-06-24 16:05:28 -06:00
committed by Nico Huber
parent 9d7d8006e2
commit 8c3de01548
10 changed files with 18 additions and 18 deletions

View File

@ -55,10 +55,10 @@ static unsigned int emu_jedec_be_52_size = 0;
static unsigned int emu_jedec_be_d8_size = 0;
static unsigned int emu_jedec_ce_60_size = 0;
static unsigned int emu_jedec_ce_c7_size = 0;
unsigned char spi_blacklist[256];
unsigned char spi_ignorelist[256];
int spi_blacklist_size = 0;
int spi_ignorelist_size = 0;
static unsigned char spi_blacklist[256];
static unsigned char spi_ignorelist[256];
static int spi_blacklist_size = 0;
static int spi_ignorelist_size = 0;
static uint8_t emu_status = 0;
/* A legit complete SFDP table based on the MX25L6436E (rev. 1.8) datasheet. */
@ -128,7 +128,7 @@ static const struct par_master par_master_dummy = {
.chip_writen = dummy_chip_writen,
};
enum chipbustype dummy_buses_supported = BUS_NONE;
static enum chipbustype dummy_buses_supported = BUS_NONE;
static int dummy_shutdown(void *data)
{