aboutsummaryrefslogtreecommitdiff
path: root/hdata
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2017-09-28 16:43:28 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-10-02 21:59:33 -0500
commita3945efe9df4d3792c2f0c7a4a824a08dfbc6f6e (patch)
tree41c7d15a346fa0d2312e72249473692518182f41 /hdata
parent39b1d9a787326a6452f15ac94f19b24d009a63a6 (diff)
downloadskiboot-a3945efe9df4d3792c2f0c7a4a824a08dfbc6f6e.zip
skiboot-a3945efe9df4d3792c2f0c7a4a824a08dfbc6f6e.tar.gz
skiboot-a3945efe9df4d3792c2f0c7a4a824a08dfbc6f6e.tar.bz2
hdata/i2c: hdat_i2c_labels and hdat_i2c_devs should be static
Silences sparse warnings: hdata/i2c.c:103:23: warning: symbol 'hdat_i2c_labels' was not declared. Should it be static? hdata/i2c.c:93:22: warning: symbol 'hdat_i2c_devs' was not declared. Should it be static? Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hdata')
-rw-r--r--hdata/i2c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hdata/i2c.c b/hdata/i2c.c
index 9de6aa4..c7f38e9 100644
--- a/hdata/i2c.c
+++ b/hdata/i2c.c
@@ -90,7 +90,7 @@ struct hdat_i2c_type {
const char *compat;
};
-struct hdat_i2c_type hdat_i2c_devs[] = {
+static struct hdat_i2c_type hdat_i2c_devs[] = {
/* XXX: Please verify that all VPD EEPROMs are of this type */
{ 0x2, "eeprom", "atmel,24c128" }
};
@@ -100,7 +100,7 @@ struct hdat_i2c_label {
const char *label;
};
-struct hdat_i2c_label hdat_i2c_labels[] = {
+static struct hdat_i2c_label hdat_i2c_labels[] = {
{ 0x1, "9551-led-controller" },
{ 0x2, "seeprom" },
{ 0x5, "module-vpd" },