summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorAndrew Donnellan <andrew.donnellan@au1.ibm.com>2017-01-03 17:10:55 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-01-05 16:14:35 +1100
commitd57264232a6e2087a0506a4beca24ade14b53d55 (patch)
treee08c00f97316ece28b4f34b9fb9f7e1aa70a50fe /hw
parent197f3caf7c1ea192b8d02319e9dfc8cfc2171635 (diff)
downloadtalos-skiboot-d57264232a6e2087a0506a4beca24ade14b53d55.tar.gz
talos-skiboot-d57264232a6e2087a0506a4beca24ade14b53d55.zip
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 'hw')
-rw-r--r--hw/ipmi/ipmi-attn.c2
-rw-r--r--hw/prd.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/hw/ipmi/ipmi-attn.c b/hw/ipmi/ipmi-attn.c
index a3e48786..ef7153ed 100644
--- a/hw/ipmi/ipmi-attn.c
+++ b/hw/ipmi/ipmi-attn.c
@@ -33,7 +33,7 @@ DEFINE_LOG_ENTRY(OPAL_RC_ATTN, OPAL_PLATFORM_ERR_EVT,
static char ti_buffer[IPMI_TI_BUFFER_SIZE];
#define STACK_BUF_ENTRIES 20
-struct bt_entry bt_buf[STACK_BUF_ENTRIES];
+static struct bt_entry bt_buf[STACK_BUF_ENTRIES];
/* Log eSEL event with OPAL backtrace */
static void ipmi_log_terminate_event(const char *msg)
diff --git a/hw/prd.c b/hw/prd.c
index e520e13d..a44faa9b 100644
--- a/hw/prd.c
+++ b/hw/prd.c
@@ -33,7 +33,7 @@ static uint8_t events[MAX_CHIPS];
static uint64_t ipoll_status[MAX_CHIPS];
static struct opal_prd_msg prd_msg;
static bool prd_msg_inuse, prd_active;
-struct dt_node *prd_node;
+static struct dt_node *prd_node;
/* Locking:
*
OpenPOWER on IntegriCloud