| From | David Howells <> | Subject | Re: [PATCH 46/58] x86: arch/x86/kernel/irqinit.c: Add prototype for init_IRQ | Date | Mon, 19 Nov 2012 10:36:17 +0000 |
| |
Josh Triplett <josh@joshtriplett.org> wrote:
> arch/x86/kernel/irqinit.c defines an __init function init_IRQ, called > from init/main.c. No header file prototypes init_IRQ, because > init/main.c tends to directly define prototypes for init functions it > calls, rather than including appropriate headers. So, add a prototype > of init_IRQ to arch/x86/kernel/irqinit.c right above the definition, to > satisfy gcc (-Wmissing-prototypes) and Sparse (-Wdecl).
Rather, you should put a declaration for it in a header file.
David
|