Skip to content

Commit 9f49db5

Browse files
JohanWindRivernashif
authored andcommitted
ioapic.h: prevent potential compiler warning
Includes device.h to prevent potential compiler warnings due to use of 'struct device *' in _ioapic_init() declaration. Change-Id: Iabd97c09385044a3742658f66a79be969b62852a Work-by: Johan Kruger <johan.kruger@windriver.com> Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com>
1 parent ff37de7 commit 9f49db5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/drivers/ioapic.h

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ SECTION_FUNC(TEXT, _\()\device\()_\()\isr\()_stub)
6262
jmp _IntExit /* Inform kernel interrupt is done */
6363
.endm
6464
#else /* _ASMLANGUAGE */
65+
#include <device.h>
6566
int _ioapic_init(struct device *unused);
6667
void _ioapic_irq_enable(unsigned int irq);
6768
void _ioapic_irq_disable(unsigned int irq);

0 commit comments

Comments
 (0)