[PATCH 4.9 02/15] x86: i8259: Add missing include file
From: Greg Kroah-Hartman
Date: Thu Aug 16 2018 - 14:44:33 EST
4.9-stable review patch. If anyone has any objections, please let me know.
From: Guenter Roeck <linux@xxxxxxxxxxxx>
commit 0a957467c5fd46142bc9c52758ffc552d4c5e2f7 upstream.
i8259.h uses inb/outb and thus needs to include asm/io.h to avoid the
following build error, as seen with x86_64:defconfig and CONFIG_SMP=n.
In file included from drivers/rtc/rtc-cmos.c:45:0:
arch/x86/include/asm/i8259.h: In function 'inb_pic':
implicit declaration of function 'inb'
arch/x86/include/asm/i8259.h: In function 'outb_pic':
implicit declaration of function 'outb'
Reported-by: Sebastian Gottschall <s.gottschall@xxxxxxxxxx>
Suggested-by: Sebastian Gottschall <s.gottschall@xxxxxxxxxx>
Fixes: 447ae3166702 ("x86: Don't include linux/irq.h from asm/hardirq.h")
Signed-off-by: Guenter Roeck <linux@xxxxxxxxxxxx>
Signed-off-by: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
arch/x86/include/asm/i8259.h | 1 +
1 file changed, 1 insertion(+)
@@ -2,6 +2,7 @@
extern unsigned int cached_irq_mask;