diff options
author | Breno Leitao <leitao@debian.org> | 2018-10-22 10:54:15 -0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-11-25 01:11:21 -0500 |
commit | 92a4543209d39215e678e81c0d56de07074bbe3a (patch) | |
tree | 417300d41fb64340edc78906406be5144394c898 | |
parent | c36c5ffd5173bad377749c136718f3c77d896691 (diff) |
powerpc/xive: Define xive_do_source_eoi as static
Sparse shows that xive_do_source_eoi() file is defined without any
declaration, thus, it should be a static function.
arch/powerpc/sysdev/xive/common.c:312:6: warning: symbol 'xive_do_source_eoi' was not declared. Should it be static?
This patch simply turns this symbol into static.
Signed-off-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
-rw-r--r-- | arch/powerpc/sysdev/xive/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/xive/common.c b/arch/powerpc/sysdev/xive/common.c index 9824074ec1b5..94a69a62f5db 100644 --- a/arch/powerpc/sysdev/xive/common.c +++ b/arch/powerpc/sysdev/xive/common.c | |||
@@ -309,7 +309,7 @@ static void xive_do_queue_eoi(struct xive_cpu *xc) | |||
309 | * EOI an interrupt at the source. There are several methods | 309 | * EOI an interrupt at the source. There are several methods |
310 | * to do this depending on the HW version and source type | 310 | * to do this depending on the HW version and source type |
311 | */ | 311 | */ |
312 | void xive_do_source_eoi(u32 hw_irq, struct xive_irq_data *xd) | 312 | static void xive_do_source_eoi(u32 hw_irq, struct xive_irq_data *xd) |
313 | { | 313 | { |
314 | /* If the XIVE supports the new "store EOI facility, use it */ | 314 | /* If the XIVE supports the new "store EOI facility, use it */ |
315 | if (xd->flags & XIVE_IRQ_FLAG_STORE_EOI) | 315 | if (xd->flags & XIVE_IRQ_FLAG_STORE_EOI) |