From 9f49db54fa1f4844b770d85e07c7e164b1d917ec Mon Sep 17 00:00:00 2001 From: jkruger Date: Thu, 8 Oct 2015 11:52:59 -0400 Subject: [PATCH] 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 Signed-off-by: Peter Mitsis --- include/drivers/ioapic.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/drivers/ioapic.h b/include/drivers/ioapic.h index ef6621bdff..bcd857a6a2 100644 --- a/include/drivers/ioapic.h +++ b/include/drivers/ioapic.h @@ -62,6 +62,7 @@ SECTION_FUNC(TEXT, _\()\device\()_\()\isr\()_stub) jmp _IntExit /* Inform kernel interrupt is done */ .endm #else /* _ASMLANGUAGE */ +#include int _ioapic_init(struct device *unused); void _ioapic_irq_enable(unsigned int irq); void _ioapic_irq_disable(unsigned int irq);