diff options
author | Salvatore Bonaccorso <carnil@debian.org> | 2018-08-16 21:17:42 +0200 |
---|---|---|
committer | Salvatore Bonaccorso <carnil@debian.org> | 2018-08-16 21:18:18 +0200 |
commit | f7fa757621c4489a1ef80de0d9b6b93763f42889 (patch) | |
tree | b8685ebe0028768d465e1d96bcd083e791c11b1f | |
parent | 757e7a9cb18b1562bc216d8b97dffc706980d005 (diff) | |
download | kernel_replicant_linux-f7fa757621c4489a1ef80de0d9b6b93763f42889.tar.gz kernel_replicant_linux-f7fa757621c4489a1ef80de0d9b6b93763f42889.tar.bz2 kernel_replicant_linux-f7fa757621c4489a1ef80de0d9b6b93763f42889.zip |
[x86] i8259: Add missing include file
-rw-r--r-- | debian/changelog | 1 | ||||
-rw-r--r-- | debian/patches/bugfix/x86/x86-i8259-add-missing-include-file.patch | 42 | ||||
-rw-r--r-- | debian/patches/series | 1 |
3 files changed, 44 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index 0ed2f6adc265..0b45c43020bb 100644 --- a/debian/changelog +++ b/debian/changelog @@ -119,6 +119,7 @@ linux (4.17.15-1) UNRELEASED; urgency=medium [ Salvatore Bonaccorso ] * [x86] l1tf: Fix build error seen if CONFIG_KVM_INTEL is disabled + * [x86] i8259: Add missing include file -- Ben Hutchings <ben@decadent.org.uk> Tue, 14 Aug 2018 00:07:30 +0800 diff --git a/debian/patches/bugfix/x86/x86-i8259-add-missing-include-file.patch b/debian/patches/bugfix/x86/x86-i8259-add-missing-include-file.patch new file mode 100644 index 000000000000..e1f15fbd2651 --- /dev/null +++ b/debian/patches/bugfix/x86/x86-i8259-add-missing-include-file.patch @@ -0,0 +1,42 @@ +From 0a957467c5fd46142bc9c52758ffc552d4c5e2f7 Mon Sep 17 00:00:00 2001 +From: Guenter Roeck <linux@roeck-us.net> +Date: Wed, 15 Aug 2018 13:22:27 -0700 +Subject: x86: i8259: Add missing include file + +From: Guenter Roeck <linux@roeck-us.net> + +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': + arch/x86/include/asm/i8259.h:32:24: error: + implicit declaration of function 'inb' + + arch/x86/include/asm/i8259.h: In function 'outb_pic': + arch/x86/include/asm/i8259.h:45:2: error: + implicit declaration of function 'outb' + +Reported-by: Sebastian Gottschall <s.gottschall@dd-wrt.com> +Suggested-by: Sebastian Gottschall <s.gottschall@dd-wrt.com> +Fixes: 447ae3166702 ("x86: Don't include linux/irq.h from asm/hardirq.h") +Signed-off-by: Guenter Roeck <linux@roeck-us.net> +Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> +Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> + +--- + arch/x86/include/asm/i8259.h | 1 + + 1 file changed, 1 insertion(+) + +--- a/arch/x86/include/asm/i8259.h ++++ b/arch/x86/include/asm/i8259.h +@@ -3,6 +3,7 @@ + #define _ASM_X86_I8259_H + + #include <linux/delay.h> ++#include <asm/io.h> + + extern unsigned int cached_irq_mask; + diff --git a/debian/patches/series b/debian/patches/series index cf1cc392f84b..3ab7a61ca347 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -70,6 +70,7 @@ bugfix/x86/mmap-add-an-exception-to-the-stack-gap-for-hotspot-jvm.patch bugfix/powerpc/powerpc-lib-sstep-fix-building-for-powerpcspe.patch bugfix/powerpc/powerpc-lib-makefile-don-t-pull-in-quad.o-for-32-bit.patch bugfix/x86/x86-l1tf-fix-build-error-seen-if-config_kvm_intel-is-disabled.patch +bugfix/x86/x86-i8259-add-missing-include-file.patch # Arch features features/mips/MIPS-increase-MAX-PHYSMEM-BITS-on-Loongson-3-only.patch |