Message ID | 20180225172236.29650-15-malat@debian.org (mailing list archive) |
---|---|
State | Accepted |
Commit | f5246862f82f1e16bbf84cda4cddf287672b30fe |
Headers | show |
Series | powerpc/gamecube: make W=1 compilation errors free | expand |
On Sun, 2018-02-25 at 17:22:29 UTC, Mathieu Malaterre wrote: > In commit 4f8b50bbbe63 ("irq_work, ppc: Fix up arch hooks") a new function > arch_irq_work_raise was added without a prototype in header irq_work.h. > > Fix the following warning (treated as error in W=1): > > CC arch/powerpc/kernel/time.o > arch/powerpc/kernel/time.c:523:6: error: no previous prototype for ‘arch_irq_work_raise’ [-Werror=missing-prototypes] > void arch_irq_work_raise(void) > ^~~~~~~~~~~~~~~~~~~ > cc1: all warnings being treated as errors > > Signed-off-by: Mathieu Malaterre <malat@debian.org> Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/f5246862f82f1e16bbf84cda4cddf2 cheers
diff --git a/arch/powerpc/include/asm/irq_work.h b/arch/powerpc/include/asm/irq_work.h index c6d3078bd8c3..b8b0be8f1a07 100644 --- a/arch/powerpc/include/asm/irq_work.h +++ b/arch/powerpc/include/asm/irq_work.h @@ -6,5 +6,6 @@ static inline bool arch_irq_work_has_interrupt(void) { return true; } +extern void arch_irq_work_raise(void); #endif /* _ASM_POWERPC_IRQ_WORK_H */
In commit 4f8b50bbbe63 ("irq_work, ppc: Fix up arch hooks") a new function arch_irq_work_raise was added without a prototype in header irq_work.h. Fix the following warning (treated as error in W=1): CC arch/powerpc/kernel/time.o arch/powerpc/kernel/time.c:523:6: error: no previous prototype for ‘arch_irq_work_raise’ [-Werror=missing-prototypes] void arch_irq_work_raise(void) ^~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors Signed-off-by: Mathieu Malaterre <malat@debian.org> --- arch/powerpc/include/asm/irq_work.h | 1 + 1 file changed, 1 insertion(+)