aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2014-11-26 11:46:48 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2014-11-26 18:17:05 +1100
commit093b264a977d5426c3507d5bdaf1196c4607b0d5 (patch)
treed249177e7bc43061e88a9e9e2067fa7ba8e87e8e /hw
parent89192badc730eea4eede2dbe662a3755443e9141 (diff)
downloadskiboot-093b264a977d5426c3507d5bdaf1196c4607b0d5.zip
skiboot-093b264a977d5426c3507d5bdaf1196c4607b0d5.tar.gz
skiboot-093b264a977d5426c3507d5bdaf1196c4607b0d5.tar.bz2
Make lpc_interrupt() attribute const
It's a placeholder at the moment, which makes it easy to say "this never gives a different answer". It also silences our one compiler warning: hw/lpc.c: In function 'lpc_interrupt': hw/lpc.c:457:6: warning: function might be candidate for attribute 'const' [-Wsuggest-attribute=const] Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/lpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/lpc.c b/hw/lpc.c
index 96d3e39..d09692a 100644
--- a/hw/lpc.c
+++ b/hw/lpc.c
@@ -454,7 +454,7 @@ bool lpc_present(void)
return lpc_default_chip_id >= 0;
}
-void lpc_interrupt(uint32_t chip_id __unused)
+void __attrconst lpc_interrupt(uint32_t chip_id __unused)
{
/* Handle the lpc interrupt source (errors etc...) TODO... */
}