aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-10-14 09:06:42 -0400
committerIngo Molnar <mingo@elte.hu>2009-10-14 09:06:42 -0400
commit7ec13187ef48b04bb7f6dfa266c7271a52d009c2 (patch)
tree0c5fc31b2721efd96fb354b01b5eeae505c54ab3 /arch
parent9338ad6ffb70eca97f335d93c54943828c8b209e (diff)
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/include/asm/hw_irq.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/hw_irq.h b/arch/x86/include/asm/hw_irq.h
index 56f0877c932..1984ce9a13d 100644
--- a/arch/x86/include/asm/hw_irq.h
+++ b/arch/x86/include/asm/hw_irq.h
@@ -102,6 +102,8 @@ struct irq_cfg {
102extern struct irq_cfg *irq_cfg(unsigned int); 102extern struct irq_cfg *irq_cfg(unsigned int);
103extern int assign_irq_vector(int, struct irq_cfg *, const struct cpumask *); 103extern int assign_irq_vector(int, struct irq_cfg *, const struct cpumask *);
104extern void send_cleanup_vector(struct irq_cfg *); 104extern void send_cleanup_vector(struct irq_cfg *);
105
106struct irq_desc;
105extern unsigned int set_desc_affinity(struct irq_desc *, const struct cpumask *); 107extern unsigned int set_desc_affinity(struct irq_desc *, const struct cpumask *);
106extern int IO_APIC_get_PCI_irq_vector(int bus, int devfn, int pin, struct io_apic_irq_attr *irq_attr); 108extern int IO_APIC_get_PCI_irq_vector(int bus, int devfn, int pin, struct io_apic_irq_attr *irq_attr);
107extern void setup_ioapic_dest(void); 109extern void setup_ioapic_dest(void);