diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2014-05-16 17:25:42 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-18 22:01:27 -0400 |
commit | 7738925de8500093638dd7fa0e5c1d8128c9fc6a (patch) | |
tree | d6356911c1fd94459d40880024a31011393f9813 /arch/sparc/kernel/kernel.h | |
parent | 1918660b9045c04545f5c5088f573c67ecff9927 (diff) |
sparc32: fix sparse warnings in pcic.c
Fix following warnings:
pcic.c:164:14: warning: symbol 'pcic_regs' was not declared. Should it be static?
pcic.c:165:14: warning: symbol 'pcic_speculative' was not declared. Should it be static?
pcic.c:166:14: warning: symbol 'pcic_trapped' was not declared. Should it be static?
pcic.c:332:66: warning: Using plain integer as NULL pointer
pcic.c:344:66: warning: Using plain integer as NULL pointer
pcic.c:539:38: warning: Using plain integer as NULL pointer
pcic.c:677:1: warning: symbol 'pcic_pin_to_irq' was not declared. Should it be static?
pcic.c:783:6: warning: symbol 'pcic_nmi' was not declared. Should it be static?
Add extern for pcic_regs.
Define a few variables static.
Replace 0 with NULL.
Delete unused funtion pcic_pin_to_irq().
Include kernel.h so we could drop declaration of
t_nmi and add prototype for pcic_nmi.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/kernel.h')
-rw-r--r-- | arch/sparc/kernel/kernel.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sparc/kernel/kernel.h b/arch/sparc/kernel/kernel.h index 8bc2c819f10a..52542419795c 100644 --- a/arch/sparc/kernel/kernel.h +++ b/arch/sparc/kernel/kernel.h | |||
@@ -140,6 +140,10 @@ void __init clock_stop_probe(void); | |||
140 | void __init auxio_probe(void); | 140 | void __init auxio_probe(void); |
141 | void __init auxio_power_probe(void); | 141 | void __init auxio_power_probe(void); |
142 | 142 | ||
143 | /* pcic.c */ | ||
144 | extern void __iomem *pcic_regs; | ||
145 | void pcic_nmi(unsigned int pend, struct pt_regs *regs); | ||
146 | |||
143 | #else /* CONFIG_SPARC32 */ | 147 | #else /* CONFIG_SPARC32 */ |
144 | #endif /* CONFIG_SPARC32 */ | 148 | #endif /* CONFIG_SPARC32 */ |
145 | #endif /* !(__SPARC_KERNEL_H) */ | 149 | #endif /* !(__SPARC_KERNEL_H) */ |