x86: Stop including <linux/delay.h> in two asm header files
authorJean Delvare <khali@linux-fr.org>
Fri, 25 Mar 2011 14:20:14 +0000 (15:20 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 29 Mar 2011 07:37:42 +0000 (09:37 +0200)
Stop including <linux/delay.h> in x86 header files which don't
need it. This will let the compiler complain when this header is
not included by source files when it should, so that
contributors can fix the problem before building on other
architectures starts to fail.

Credits go to Geert for the idea.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: James E.J. Bottomley <James.Bottomley@suse.de>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
LKML-Reference: <20110325152014.297890ec@endymion.delvare>
[ this also fixes an upstream build bug in drivers/media/rc/ite-cir.c ]
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/apic.h
arch/x86/include/asm/dma.h
arch/x86/kernel/apic/hw_nmi.c
arch/x86/kernel/apic/x2apic_uv_x.c
arch/x86/kernel/irq.c
arch/x86/kernel/reboot.c
arch/x86/platform/uv/tlb_uv.c
drivers/media/rc/ite-cir.c
drivers/scsi/ultrastor.c

index a279d98ea95e9880d93fee697b3efd30646f9b5b..2b7d573be5496863572be6dc724af256e00f4cf7 100644 (file)
@@ -2,7 +2,6 @@
 #define _ASM_X86_APIC_H
 
 #include <linux/cpumask.h>
-#include <linux/delay.h>
 #include <linux/pm.h>
 
 #include <asm/alternative.h>
index 97b6d8114a439e410bc7107e07492f5ff52cf14c..057099e5faba5fa4e82c33e8dfd54807b3062fec 100644 (file)
@@ -10,7 +10,6 @@
 
 #include <linux/spinlock.h>    /* And spinlocks */
 #include <asm/io.h>            /* need byte IO */
-#include <linux/delay.h>
 
 #ifdef HAVE_REALLY_SLOW_DMA_CONTROLLER
 #define dma_outb       outb_p
index c4e557a1ebb6feae34839531ee6752ec98995e4f..5260fe91bcb66301aeb2eb97ad833ab855212494 100644 (file)
@@ -16,6 +16,7 @@
 #include <linux/kprobes.h>
 #include <linux/nmi.h>
 #include <linux/module.h>
+#include <linux/delay.h>
 
 #ifdef CONFIG_HARDLOCKUP_DETECTOR
 u64 hw_nmi_get_sample_period(void)
index 3c289281394cff3e164891e56509fa9658412755..d2cf39bc5ecfcba30d95f0da9a998546aa92098a 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/io.h>
 #include <linux/pci.h>
 #include <linux/kdebug.h>
+#include <linux/delay.h>
 
 #include <asm/uv/uv_mmrs.h>
 #include <asm/uv/uv_hub.h>
index 948a31eae75fdf837d9eee344108ce7b7fb4200d..1cb0b9fc78dccffd68a1c571e873043e0d28d007 100644 (file)
@@ -8,6 +8,7 @@
 #include <linux/seq_file.h>
 #include <linux/smp.h>
 #include <linux/ftrace.h>
+#include <linux/delay.h>
 
 #include <asm/apic.h>
 #include <asm/io_apic.h>
index d3ce37edb54dfd386c5fe0ced008e623aed29f7e..08c44b08bf5bda05e227a2c8b2a55bfa36964836 100644 (file)
@@ -6,6 +6,7 @@
 #include <linux/dmi.h>
 #include <linux/sched.h>
 #include <linux/tboot.h>
+#include <linux/delay.h>
 #include <acpi/reboot.h>
 #include <asm/io.h>
 #include <asm/apic.h>
index a7b38d35c29a1ce7578d36e38cfe04616143b39f..7cb6424317f642bcbb44caabdd6c92cf0fbfa605 100644 (file)
@@ -11,6 +11,7 @@
 #include <linux/debugfs.h>
 #include <linux/kernel.h>
 #include <linux/slab.h>
+#include <linux/delay.h>
 
 #include <asm/mmu_context.h>
 #include <asm/uv/uv.h>
index ac0e42b47b2abf94a2e21bc33c524464537753b5..accaf6c9789a6bcae94157be03cd6240e15ad120 100644 (file)
@@ -41,6 +41,7 @@
 #include <linux/bitops.h>
 #include <media/rc-core.h>
 #include <linux/pci_ids.h>
+#include <linux/delay.h>
 
 #include "ite-cir.h"
 
index 0571ef9639cbc15b6d5ace0384c03a895900ff7d..9f4b58b7daaded8801e2724a8fce3ecfd6441166 100644 (file)
 #include <linux/spinlock.h>
 #include <linux/stat.h>
 #include <linux/bitops.h>
+#include <linux/delay.h>
 
 #include <asm/io.h>
 #include <asm/system.h>