diff options
author | Andrew Donnellan <andrew.donnellan@au1.ibm.com> | 2017-01-03 17:10:55 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-01-05 16:14:35 +1100 |
commit | d57264232a6e2087a0506a4beca24ade14b53d55 (patch) | |
tree | e08c00f97316ece28b4f34b9fb9f7e1aa70a50fe /platforms | |
parent | 197f3caf7c1ea192b8d02319e9dfc8cfc2171635 (diff) | |
download | skiboot-d57264232a6e2087a0506a4beca24ade14b53d55.zip skiboot-d57264232a6e2087a0506a4beca24ade14b53d55.tar.gz skiboot-d57264232a6e2087a0506a4beca24ade14b53d55.tar.bz2 |
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 <andrew.donnellan@au1.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'platforms')
-rw-r--r-- | platforms/astbmc/p8dtu.c | 2 | ||||
-rw-r--r-- | platforms/ibm-fsp/firenze.c | 2 |
2 files changed, 1 insertions, 3 deletions
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; |