x86, apic: Fix prototype in hw_irq.h
authorIngo Molnar <mingo@elte.hu>
Wed, 14 Oct 2009 13:06:42 +0000 (15:06 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 14 Oct 2009 13:06:42 +0000 (15:06 +0200)
commit7ec13187ef48b04bb7f6dfa266c7271a52d009c2
tree0c5fc31b2721efd96fb354b01b5eeae505c54ab3
parent9338ad6ffb70eca97f335d93c54943828c8b209e
x86, apic: Fix prototype in hw_irq.h

This warning:

 In file included from arch/x86/include/asm/ipi.h:23,
                  from arch/x86/kernel/apic/apic_noop.c:27:
 arch/x86/include/asm/hw_irq.h:105: warning: â€˜struct irq_desc’ declared inside parameter list
 arch/x86/include/asm/hw_irq.h:105: warning: its scope is only this definition or declaration, which is probably not what you want

triggers because irq_desc is defined after hw_irq.h is included
in irq.h. Since it's pointer reference only, a forward declaration
of the type will solve the problem.

LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/hw_irq.h