From d57264232a6e2087a0506a4beca24ade14b53d55 Mon Sep 17 00:00:00 2001 From: Andrew Donnellan Date: Tue, 3 Jan 2017 17:10:55 +1100 Subject: treewide: squash sparse static warnings Add static to various declarations that can use it, as found by sparse. It turns out that one of these (fsp_pcie_inv_lock in platform/ibm-fsp/firenze.c) is actually unused, so remove it. Signed-off-by: Andrew Donnellan Signed-off-by: Stewart Smith --- platforms/astbmc/p8dtu.c | 2 +- platforms/ibm-fsp/firenze.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'platforms') diff --git a/platforms/astbmc/p8dtu.c b/platforms/astbmc/p8dtu.c index 8d7f92f..63d36fb 100644 --- a/platforms/astbmc/p8dtu.c +++ b/platforms/astbmc/p8dtu.c @@ -227,7 +227,7 @@ static bool p8dtu2u_probe(void) return true; } -const struct bmc_platform astbmc_smc = { +static const struct bmc_platform astbmc_smc = { .name = "SMC", .ipmi_oem_partial_add_esel = IPMI_CODE(0x3a, 0xf0), .ipmi_oem_pnor_access_status = IPMI_CODE(0x3a, 0x07), diff --git a/platforms/ibm-fsp/firenze.c b/platforms/ibm-fsp/firenze.c index cc626c0..dc70546 100644 --- a/platforms/ibm-fsp/firenze.c +++ b/platforms/ibm-fsp/firenze.c @@ -28,8 +28,6 @@ #include "ibm-fsp.h" #include "lxvpd.h" -struct lock fsp_pcie_inv_lock = LOCK_UNLOCKED; - static struct dt_node *dt_create_i2c_master(struct dt_node *n, uint32_t eng_id) { struct dt_node *i2cm; -- cgit v1.1