aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2016-10-12 13:31:04 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-10-17 10:33:52 +1100
commit53a786a7b4dfbd2f4a567c82e903ccf6745f3b74 (patch)
treef03b947f5d624caee67639f668646ee7bf6cacbb /include
parentb2265a449dac2e0ae24910017f372fd71b13a0f2 (diff)
downloadskiboot-53a786a7b4dfbd2f4a567c82e903ccf6745f3b74.zip
skiboot-53a786a7b4dfbd2f4a567c82e903ccf6745f3b74.tar.gz
skiboot-53a786a7b4dfbd2f4a567c82e903ccf6745f3b74.tar.bz2
Declare proc_chip_quirks as extern, squash sparse warning
include/chip.h:134:3: warning: symbol 'proc_chip_quirks' was not declared. Should it be static? In fact it shouldn't be static, it should just exist *once* and that place is chip.c Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r--include/chip.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/chip.h b/include/chip.h
index 396e41f..61b413c 100644
--- a/include/chip.h
+++ b/include/chip.h
@@ -131,7 +131,9 @@ enum proc_chip_quirks {
QUIRK_SIMICS = 0x00000020,
QUIRK_SLOW_SIM = 0x00000040,
QUIRK_NO_DIRECT_CTL = 0x00000080,
-} proc_chip_quirks;
+};
+
+extern enum proc_chip_quirks proc_chip_quirks;
static inline bool chip_quirk(unsigned int q)
{