[PATCH] fix missing includes
authorTim Schmielau <tim@physik3.uni-rostock.de>
Sun, 30 Oct 2005 23:03:48 +0000 (15:03 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 31 Oct 2005 01:37:32 +0000 (17:37 -0800)
I recently picked up my older work to remove unnecessary #includes of
sched.h, starting from a patch by Dave Jones to not include sched.h
from module.h. This reduces the number of indirect includes of sched.h
by ~300. Another ~400 pointless direct includes can be removed after
this disentangling (patch to follow later).
However, quite a few indirect includes need to be fixed up for this.

In order to feed the patches through -mm with as little disturbance as
possible, I've split out the fixes I accumulated up to now (complete for
i386 and x86_64, more archs to follow later) and post them before the real
patch.  This way this large part of the patch is kept simple with only
adding #includes, and all hunks are independent of each other.  So if any
hunk rejects or gets in the way of other patches, just drop it.  My scripts
will pick it up again in the next round.

Signed-off-by: Tim Schmielau <tim@physik3.uni-rostock.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
180 files changed:
Documentation/firmware_class/firmware_sample_driver.c
Documentation/firmware_class/firmware_sample_firmware_class.c
arch/arm/common/amba.c
arch/arm/common/scoop.c
arch/arm/kernel/arthur.c
arch/arm/mach-imx/generic.c
arch/arm/mach-integrator/clock.c
arch/arm/mach-integrator/integrator_ap.c
arch/arm/mach-integrator/lm.c
arch/arm/mach-iop3xx/iq31244-pci.c
arch/arm/mach-iop3xx/iq80321-pci.c
arch/arm/mach-iop3xx/iq80331-pci.c
arch/arm/mach-iop3xx/iq80332-pci.c
arch/arm/mach-pxa/generic.c
arch/arm/mach-sa1100/generic.c
arch/arm/mach-versatile/clock.c
arch/arm/plat-omap/clock.c
arch/cris/arch-v10/drivers/axisflashmap.c
arch/cris/arch-v32/drivers/axisflashmap.c
arch/cris/kernel/time.c
arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
arch/i386/kernel/cpu/cpufreq/p4-clockmod.c
arch/i386/kernel/cpu/cpufreq/powernow-k8.c
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
arch/i386/kernel/cpu/intel_cacheinfo.c
arch/ia64/kernel/cyclone.c
arch/m32r/lib/csum_partial_copy.c
arch/mips/sgi-ip27/ip27-berr.c
arch/ppc/syslib/of_device.c
arch/ppc64/kernel/hvcserver.c
arch/ppc64/kernel/of_device.c
arch/ppc64/lib/locks.c
arch/sh/drivers/dma/dma-sysfs.c
arch/sh/kernel/cpufreq.c
arch/xtensa/kernel/platform.c
drivers/acpi/processor_idle.c
drivers/base/class.c
drivers/base/platform.c
drivers/base/sys.c
drivers/block/cciss_scsi.c
drivers/block/paride/paride.c
drivers/block/paride/pg.c
drivers/block/paride/pt.c
drivers/char/agp/ali-agp.c
drivers/char/agp/amd64-agp.c
drivers/char/agp/ati-agp.c
drivers/char/agp/i460-agp.c
drivers/char/agp/isoch.c
drivers/char/agp/sworks-agp.c
drivers/char/drm/drm_sysfs.c
drivers/char/mwave/3780i.c
drivers/char/watchdog/cpu5wdt.c
drivers/char/watchdog/mixcomwd.c
drivers/char/watchdog/pcwd.c
drivers/char/watchdog/sc520_wdt.c
drivers/char/watchdog/softdog.c
drivers/infiniband/core/cache.c
drivers/infiniband/core/sa_query.c
drivers/infiniband/hw/mthca/mthca_av.c
drivers/infiniband/hw/mthca/mthca_mad.c
drivers/infiniband/hw/mthca/mthca_mcg.c
drivers/infiniband/hw/mthca/mthca_profile.c
drivers/infiniband/hw/mthca/mthca_qp.c
drivers/infiniband/hw/mthca/mthca_reset.c
drivers/infiniband/hw/mthca/mthca_uar.c
drivers/input/gameport/gameport.c
drivers/input/joystick/a3d.c
drivers/input/joystick/adi.c
drivers/input/joystick/analog.c
drivers/input/joystick/cobra.c
drivers/input/joystick/gf2k.c
drivers/input/joystick/grip.c
drivers/input/joystick/grip_mp.c
drivers/input/joystick/guillemot.c
drivers/input/joystick/interact.c
drivers/input/joystick/joydump.c
drivers/input/joystick/sidewinder.c
drivers/input/joystick/tmdc.c
drivers/input/serio/hp_sdc_mlc.c
drivers/isdn/capi/capifs.c
drivers/macintosh/macio_asic.c
drivers/mca/mca-device.c
drivers/media/common/ir-common.c
drivers/media/dvb/dvb-core/dvb_ca_en50221.c
drivers/media/dvb/frontends/bcm3510.c
drivers/media/dvb/frontends/dib3000mb.c
drivers/media/dvb/frontends/dib3000mc.c
drivers/media/dvb/frontends/dvb_dummy_fe.c
drivers/media/dvb/frontends/lgdt330x.c
drivers/media/dvb/frontends/mt312.c
drivers/media/dvb/frontends/mt352.c
drivers/media/dvb/frontends/nxt2002.c
drivers/media/dvb/frontends/or51132.c
drivers/media/dvb/frontends/or51211.c
drivers/media/dvb/frontends/s5h1420.c
drivers/media/dvb/frontends/sp8870.c
drivers/media/dvb/frontends/sp887x.c
drivers/media/dvb/frontends/stv0297.c
drivers/media/dvb/frontends/stv0299.c
drivers/media/dvb/frontends/tda1004x.c
drivers/media/dvb/frontends/tda8083.c
drivers/media/radio/miropcm20-rds.c
drivers/message/i2o/device.c
drivers/message/i2o/driver.c
drivers/message/i2o/exec-osm.c
drivers/message/i2o/iop.c
drivers/mtd/chips/jedec.c
drivers/mtd/devices/lart.c
drivers/mtd/devices/phram.c
drivers/mtd/maps/bast-flash.c
drivers/mtd/maps/ceiva.c
drivers/mtd/maps/dc21285.c
drivers/mtd/maps/dilnetpc.c
drivers/mtd/maps/epxa10db-flash.c
drivers/mtd/maps/fortunet.c
drivers/mtd/maps/ixp2000.c
drivers/mtd/maps/ixp4xx.c
drivers/mtd/maps/lubbock-flash.c
drivers/mtd/maps/mainstone-flash.c
drivers/mtd/maps/omap-toto-flash.c
drivers/mtd/maps/omap_nor.c
drivers/mtd/maps/pci.c
drivers/mtd/maps/plat-ram.c
drivers/mtd/maps/tqm8xxl.c
drivers/mtd/mtdblock.c
drivers/mtd/mtdchar.c
drivers/mtd/mtdconcat.c
drivers/mtd/nand/s3c2410.c
drivers/pci/hotplug/cpcihp_generic.c
drivers/pci/hotplug/cpcihp_zt5550.c
drivers/pci/hotplug/fakephp.c
drivers/pci/hotplug/pciehprm_nonacpi.c
drivers/pci/hotplug/rpadlpar_core.c
drivers/pci/hotplug/rpaphp_pci.c
drivers/pci/hotplug/rpaphp_slot.c
drivers/pci/hotplug/shpchp.h
drivers/pci/hotplug/shpchprm_nonacpi.c
drivers/pci/pci-driver.c
drivers/pci/pci.c
drivers/pci/pcie/portdrv_core.c
drivers/pci/pcie/portdrv_pci.c
drivers/pci/rom.c
drivers/pnp/manager.c
drivers/pnp/pnpbios/rsparser.c
drivers/s390/cio/cmf.c
drivers/s390/cio/device.c
drivers/s390/cio/device_fsm.c
drivers/scsi/scsi_transport_fc.c
drivers/scsi/scsi_transport_iscsi.c
drivers/scsi/sym53c8xx_2/sym_hipd.c
drivers/scsi/sym53c8xx_2/sym_hipd.h
drivers/sh/superhyway/superhyway.c
drivers/usb/host/ohci-omap.c
drivers/usb/host/ohci-pci.c
drivers/usb/host/ohci-pxa27x.c
drivers/w1/w1_family.c
drivers/zorro/zorro-sysfs.c
drivers/zorro/zorro.c
fs/filesystems.c
fs/jffs2/background.c
fs/jffs2/wbuf.c
include/linux/cpufreq.h
include/linux/gameport.h
include/linux/i2c.h
include/linux/i2o.h
include/linux/kobj_map.h
include/linux/mtd/map.h
include/linux/serial.h
include/linux/textsearch.h
include/pcmcia/ss.h
include/scsi/scsi_cmnd.h
include/scsi/scsi_transport_fc.h
kernel/kallsyms.c
kernel/kprobes.c
kernel/params.c
lib/kobject.c
lib/smp_processor_id.c
lib/sort.c
lib/vsprintf.c
sound/oss/ac97_codec.c

index 4bef8c25172c8e472b09f068e0a34e2e5e8b08ee..d3ad2c24490aa4361ad83d841aca57607f83e5db 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/kernel.h>
 #include <linux/init.h>
 #include <linux/device.h>
+#include <linux/string.h>
 
 #include "linux/firmware.h"
 
index 09eab2f1b3735f0f9ff6feb193bba7b70c72130f..57b956aecbc52c0d4c7402611edc83304870dad0 100644 (file)
@@ -14,6 +14,8 @@
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/timer.h>
+#include <linux/slab.h>
+#include <linux/string.h>
 #include <linux/firmware.h>
 
 
index c6beb751f2a93b4057a49df188d8522e1809dcdc..e1013112c354b4ab22bda4fa11968d5d93dee910 100644 (file)
@@ -10,6 +10,8 @@
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/device.h>
+#include <linux/string.h>
+#include <linux/slab.h>
 
 #include <asm/io.h>
 #include <asm/irq.h>
index e8356b76d7c6e1fcaf3155b886085ef64c5c6e64..4af0cf5f3bfbc8d4f8fce84fc508f465c6ddf10a 100644 (file)
@@ -12,6 +12,9 @@
  */
 
 #include <linux/device.h>
+#include <linux/string.h>
+#include <linux/slab.h>
+
 #include <asm/io.h>
 #include <asm/hardware/scoop.h>
 
index a418dad6692c754b54504e54dcf86eb8d69dcaa3..0ee2e98196313a6dffaf46e38faaf5b426d80144 100644 (file)
@@ -18,6 +18,7 @@
 #include <linux/stddef.h>
 #include <linux/signal.h>
 #include <linux/init.h>
+#include <linux/sched.h>
 
 #include <asm/ptrace.h>
 
index cb14b0682cef09892d9035b0ebd6f1bb02b43730..837d7f0bda4c8f9b610064551414e66f1cf5a213 100644 (file)
@@ -26,6 +26,8 @@
 #include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
+#include <linux/string.h>
+
 #include <asm/arch/imxfb.h>
 #include <asm/hardware.h>
 #include <asm/arch/imx-regs.h>
index 56200594db3c2898255c281960014cbd709f817a..73c360685cad5eac086d56e03243620ee83a7ac7 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/list.h>
 #include <linux/errno.h>
 #include <linux/err.h>
+#include <linux/string.h>
 
 #include <asm/semaphore.h>
 #include <asm/hardware/clock.h>
index f368b85f0447c220b601f44b68db2beef8a67612..764ceb49470a88975044d383cfe90e083fd77c70 100644 (file)
@@ -30,6 +30,7 @@
 #include <asm/io.h>
 #include <asm/irq.h>
 #include <asm/setup.h>
+#include <asm/param.h>         /* HZ */
 #include <asm/mach-types.h>
 #include <asm/hardware/amba.h>
 #include <asm/hardware/amba_kmi.h>
index c5f19d160598694c32a165b3611bf0e6e7e670c5..5b41e3a724e1d34f35aacd1a94372781a2c4710a 100644 (file)
@@ -10,6 +10,7 @@
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/device.h>
+#include <linux/slab.h>
 
 #include <asm/arch/lm.h>
 
index f997daa800bf5d196ce0e71bf61e0601656dffd6..c6a973ba8fc6f9aff7af143be17f4fdd95427720 100644 (file)
@@ -14,6 +14,8 @@
 #include <linux/kernel.h>
 #include <linux/pci.h>
 #include <linux/init.h>
+#include <linux/string.h>
+#include <linux/slab.h>
 
 #include <asm/hardware.h>
 #include <asm/irq.h>
index 79fea3d20b66d53b0072543267e998845ef39493..802f6d091b75ec5b4f407fa2a3ffc6e7dedd2f22 100644 (file)
@@ -14,6 +14,8 @@
 #include <linux/kernel.h>
 #include <linux/pci.h>
 #include <linux/init.h>
+#include <linux/string.h>
+#include <linux/slab.h>
 
 #include <asm/hardware.h>
 #include <asm/irq.h>
index f37a0e26b4663e521ae8683dcfa668e75f3e15c2..654e450a131170a28997f1a674bbff09c0cd160a 100644 (file)
@@ -13,6 +13,8 @@
 #include <linux/kernel.h>
 #include <linux/pci.h>
 #include <linux/init.h>
+#include <linux/string.h>
+#include <linux/slab.h>
 
 #include <asm/hardware.h>
 #include <asm/irq.h>
index b9807aa2aade264b69ec48d5fc482cfdb6d59ae0..65951ffe4631261485c2ab1c64655426ba771c89 100644 (file)
@@ -13,6 +13,8 @@
 #include <linux/kernel.h>
 #include <linux/pci.h>
 #include <linux/init.h>
+#include <linux/string.h>
+#include <linux/slab.h>
 
 #include <asm/hardware.h>
 #include <asm/irq.h>
index 3248bc9b94955ba934c914c6aef4763ae4e9a1c2..9c0289333301e9c5f0c0dc252c9990fbd20a8646 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/device.h>
 #include <linux/ioport.h>
 #include <linux/pm.h>
+#include <linux/string.h>
 
 #include <asm/hardware.h>
 #include <asm/irq.h>
index f94b0fbcdcc86af73db3a3f4091318b620519e16..83eba8b54816681f217807dd2ef0dccd76d10288 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/pm.h>
 #include <linux/cpufreq.h>
 #include <linux/ioport.h>
+#include <linux/sched.h>       /* just for sched_clock() - funny that */
 
 #include <asm/div64.h>
 #include <asm/hardware.h>
index 48025c2b99873ba1d3b67660081ad0d40546d11c..b96a2ea15d41b61b517204c770cfe9cc4d19ec7c 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/list.h>
 #include <linux/errno.h>
 #include <linux/err.h>
+#include <linux/string.h>
 
 #include <asm/semaphore.h>
 #include <asm/hardware/clock.h>
index 52a58b2da2882553121810e75ba9aa1d168674b0..a020fe16428fecbd430989927da27ca7d174f53f 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/list.h>
 #include <linux/errno.h>
 #include <linux/err.h>
+#include <linux/string.h>
 
 #include <asm/io.h>
 #include <asm/semaphore.h>
index 11ab3836aac65102d87b97429bdceb25e14e0218..56b038c8d48202f916b1eb06fc217a8ecb66afd6 100644 (file)
 #include <linux/kernel.h>
 #include <linux/config.h>
 #include <linux/init.h>
+#include <linux/slab.h>
 
 #include <linux/mtd/concat.h>
 #include <linux/mtd/map.h>
index 78ed52b1cdacfe5c7846da2d5eff686b851a24e3..b679f983b90a6edd5c05e5a2602fdace3d4b83f0 100644 (file)
@@ -20,6 +20,7 @@
 #include <linux/kernel.h>
 #include <linux/config.h>
 #include <linux/init.h>
+#include <linux/slab.h>
 
 #include <linux/mtd/concat.h>
 #include <linux/mtd/map.h>
index b863815de78d7884d664ad3f3f2b19855ac3b66e..66ba8898db07ba0facf5a1edb86b31bb48a4f874 100644 (file)
@@ -31,6 +31,7 @@
 #include <linux/timex.h>
 #include <linux/init.h>
 #include <linux/profile.h>
+#include <linux/sched.h>       /* just for sched_clock() - funny that */
 
 int have_rtc;  /* used to remember if we have an RTC or not */;
 
index 822c8ce9d1f19374618ffa9c633d560dc1833f21..caa9f77113439c3aa4fb0276c1c21961151baf64 100644 (file)
@@ -32,6 +32,7 @@
 #include <linux/proc_fs.h>
 #include <linux/seq_file.h>
 #include <linux/compiler.h>
+#include <linux/sched.h>       /* current */
 #include <asm/io.h>
 #include <asm/delay.h>
 #include <asm/uaccess.h>
index aa622d52c6e538bf616c8d4eeaee8bbe4efce96a..270f2188d68b1857d3ef59c3a71adf7f106de2c4 100644 (file)
@@ -28,6 +28,7 @@
 #include <linux/cpufreq.h>
 #include <linux/slab.h>
 #include <linux/cpumask.h>
+#include <linux/sched.h>       /* current / set_cpus_allowed() */
 
 #include <asm/processor.h> 
 #include <asm/msr.h>
index 58ca98fdc2cabbc3e73ad03f910c59af64e30d69..2d5c9adba0cdc9a183743993dd3f2a794ccc6e47 100644 (file)
@@ -32,6 +32,7 @@
 #include <linux/slab.h>
 #include <linux/string.h>
 #include <linux/cpumask.h>
+#include <linux/sched.h>       /* for current / set_cpus_allowed() */
 
 #include <asm/msr.h>
 #include <asm/io.h>
index c397b622043019196ffb9fdef2834c120ff4536e..1465974256c9a57300427cc3ca851c890f79684f 100644 (file)
@@ -22,6 +22,7 @@
 #include <linux/init.h>
 #include <linux/cpufreq.h>
 #include <linux/config.h>
+#include <linux/sched.h>       /* current */
 #include <linux/delay.h>
 #include <linux/compiler.h>
 
index f0839334881c76a49fbf7cc191f1c20a82e556ce..4dc42a189ae5ebefc3b3f0595211a51a2182f8be 100644 (file)
@@ -11,6 +11,7 @@
 #include <linux/device.h>
 #include <linux/compiler.h>
 #include <linux/cpu.h>
+#include <linux/sched.h>
 
 #include <asm/processor.h>
 #include <asm/smp.h>
index 768c7e46957c0ed4a8da581c1c8315041d06d13f..6ade3790ce07967ae09a3d65a1810c399ea5495c 100644 (file)
@@ -2,6 +2,7 @@
 #include <linux/smp.h>
 #include <linux/time.h>
 #include <linux/errno.h>
+#include <linux/timex.h>
 #include <asm/io.h>
 
 /* IBM Summit (EXA) Cyclone counter code*/
index ddb16a83a8ce4621af77840971e24e9868e8bb99..3d5f06145854e3f7fda80b440c593daac9d294b8 100644 (file)
 
 #include <linux/module.h>
 #include <linux/types.h>
+#include <linux/string.h>
 
 #include <net/checksum.h>
 #include <asm/byteorder.h>
-#include <asm/string.h>
 #include <asm/uaccess.h>
 
 /*
index e1829a5d3b192fd38bcaa05302c0a6f716265273..07631a97670bd85897c9e9208b708a6200b87bd1 100644 (file)
@@ -10,6 +10,7 @@
 #include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
+#include <linux/signal.h>      /* for SIGBUS */
 
 #include <asm/module.h>
 #include <asm/sn/addrs.h>
index 93c7231ea709295313de744788bdfa3d085134e9..85b8212516358652452a633087159cf04737afad 100644 (file)
@@ -4,6 +4,8 @@
 #include <linux/init.h>
 #include <linux/module.h>
 #include <linux/mod_devicetable.h>
+#include <linux/slab.h>
+
 #include <asm/errno.h>
 #include <asm/of_device.h>
 
index bde8f42da8543af7354d2ee3462651427a554720..4d584172055a6e923dc6d69e7a0b83c01b0b2019 100644 (file)
@@ -22,6 +22,8 @@
 #include <linux/kernel.h>
 #include <linux/list.h>
 #include <linux/module.h>
+#include <linux/slab.h>
+
 #include <asm/hvcall.h>
 #include <asm/hvcserver.h>
 #include <asm/io.h>
index 9f200f0f2ad54ae4eaac0fa7a7bc173d20200b87..3aabfd0d3dda845aff862ec079a56318a686c0d6 100644 (file)
@@ -4,6 +4,8 @@
 #include <linux/init.h>
 #include <linux/module.h>
 #include <linux/mod_devicetable.h>
+#include <linux/slab.h>
+
 #include <asm/errno.h>
 #include <asm/of_device.h>
 
index 033643ab69e0bfac4903c4544fbfc52f70ba8972..d622c1d58e4ee380963badde1047d2a2e05d59a5 100644 (file)
@@ -17,6 +17,8 @@
 #include <linux/spinlock.h>
 #include <linux/module.h>
 #include <linux/stringify.h>
+#include <linux/smp.h>
+
 #include <asm/hvcall.h>
 #include <asm/iSeries/HvCall.h>
 
index 71a6d4e7809fbe91699fc04a85cf4c8a380b1fa8..6e3b58bd8795f4790223fa74b2c914377a862c08 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/init.h>
 #include <linux/sysdev.h>
 #include <linux/module.h>
+#include <linux/string.h>
 #include <asm/dma.h>
 
 static struct sysdev_class dma_sysclass = {
index e0b384bef55f244c6f48e9ec719d5671120af916..47abf6e49dfb116ce712c94c6ccbd4e3efb17d6e 100644 (file)
@@ -20,6 +20,7 @@
 #include <linux/delay.h>
 #include <linux/cpumask.h>
 #include <linux/smp.h>
+#include <linux/sched.h>       /* set_cpus_allowed() */
 
 #include <asm/processor.h>
 #include <asm/watchdog.h>
index 03674daabc66b25ea73ccbd204fc928cbef1d797..a17930747f204046e7d0456d6382b485fa2c2dc6 100644 (file)
@@ -18,6 +18,7 @@
 #include <linux/time.h>
 #include <asm/platform.h>
 #include <asm/timex.h>
+#include <asm/param.h>         /* HZ */
 
 #define _F(r,f,a,b)                                                    \
        r __platform_##f a b;                                           \
index 26a3a4016115364467b5feff71415c7e88f4d016..161db4acfb91de2d26ddbde096688de93322f93c 100644 (file)
@@ -37,6 +37,7 @@
 #include <linux/acpi.h>
 #include <linux/dmi.h>
 #include <linux/moduleparam.h>
+#include <linux/sched.h>       /* need_resched() */
 
 #include <asm/io.h>
 #include <asm/uaccess.h>
index c3e569730afe709e46973fbc456b9038cc76d8aa..db65fd0babe937f4ba88682293db9a2bae5907d2 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/string.h>
 #include <linux/kdev_t.h>
 #include <linux/err.h>
+#include <linux/slab.h>
 #include "base.h"
 
 #define to_class_attr(_attr) container_of(_attr, struct class_attribute, attr)
index 75ce8711bca5d7a6df22f06167a932145ed33b6a..08d9cc99c7de134613a92565c9be883ccb194861 100644 (file)
@@ -16,6 +16,7 @@
 #include <linux/dma-mapping.h>
 #include <linux/bootmem.h>
 #include <linux/err.h>
+#include <linux/slab.h>
 
 #include "base.h"
 
index 3431eb6004c3287f6c0be52ddcb75d13d6037f0e..66ed8f2fece5009082d4e994622fcb5acc49f82e 100644 (file)
@@ -21,6 +21,7 @@
 #include <linux/slab.h>
 #include <linux/string.h>
 #include <linux/pm.h>
+#include <asm/semaphore.h>
 
 extern struct subsystem devices_subsys;
 
index e183a3ef7839fdabd5dfc8a2ec9d1f1fa11d94db..ec27976a57da1285c5b2e0f3be357cc91c63038f 100644 (file)
    through the array controller.  Note in particular, neither 
    physical nor logical disks are presented through the scsi layer. */
 
+#include <linux/timer.h>
+#include <linux/completion.h>
+#include <linux/slab.h>
+#include <linux/string.h>
+
+#include <asm/atomic.h>
+
 #include <scsi/scsi.h> 
 #include <scsi/scsi_cmnd.h>
 #include <scsi/scsi_device.h>
 #include <scsi/scsi_host.h> 
-#include <asm/atomic.h>
-#include <linux/timer.h>
-#include <linux/completion.h>
 
 #include "cciss_scsi.h"
 
index 1fef136c0e412a53538d6e0833eece3df2822b84..ce94aa11f6a7020d900a5e07def3959479366ea6 100644 (file)
@@ -29,6 +29,7 @@
 #include <linux/string.h>
 #include <linux/spinlock.h>
 #include <linux/wait.h>
+#include <linux/sched.h>       /* TASK_* */
 
 #ifdef CONFIG_PARPORT_MODULE
 #define CONFIG_PARPORT
index 82f2d6d2eeefef8e6e53e9400f7bce6a3cd9f272..6f5df0fad70384b1eab9537740f3a8a2bb73cdfe 100644 (file)
@@ -162,6 +162,8 @@ enum {D_PRT, D_PRO, D_UNI, D_MOD, D_SLV, D_DLY};
 #include <linux/mtio.h>
 #include <linux/pg.h>
 #include <linux/device.h>
+#include <linux/sched.h>       /* current, TASK_* */
+#include <linux/jiffies.h>
 
 #include <asm/uaccess.h>
 
index 686c955734523f37d8e18bb1294bcd8a0d45031b..715ae5dc88fba4f8a2e1dd191d2bd8d591997d4c 100644 (file)
@@ -146,6 +146,7 @@ static int (*drives[4])[6] = {&drive0, &drive1, &drive2, &drive3};
 #include <linux/slab.h>
 #include <linux/mtio.h>
 #include <linux/device.h>
+#include <linux/sched.h>       /* current, TASK_*, schedule_timeout() */
 
 #include <asm/uaccess.h>
 
index 9c9c9c2247cecfe8c48d0607e8a5d5a0b5f0921f..b02fc2267159675c32e8e6a58c27ab8173a9161f 100644 (file)
@@ -7,6 +7,7 @@
 #include <linux/pci.h>
 #include <linux/init.h>
 #include <linux/agp_backend.h>
+#include <asm/page.h>          /* PAGE_SIZE */
 #include "agp.h"
 
 #define ALI_AGPCTRL    0xb8
index 0a7624a9b1c1c6e3a3a5feffb3364f9e14c1eba9..0e6c3a31d3448a820f4f8a95d8f43d6d6d2a9915 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/pci.h>
 #include <linux/init.h>
 #include <linux/agp_backend.h>
+#include <asm/page.h>          /* PAGE_SIZE */
 #include "agp.h"
 
 /* Will need to be increased if AMD64 ever goes >8-way. */
index e572ced9100aeb8d78fc9bdf5379952ae3ff3905..0b6e72642d6e5a0126038d5cd553f39fd87d4d0c 100644 (file)
@@ -6,6 +6,8 @@
 #include <linux/module.h>
 #include <linux/pci.h>
 #include <linux/init.h>
+#include <linux/string.h>
+#include <linux/slab.h>
 #include <linux/agp_backend.h>
 #include <asm/agp.h>
 #include "agp.h"
index 94943298c03eb42056d00ba73875147bd40b7e24..a2d9e5e48bbeeff576bb7f0ac953b837017695b3 100644 (file)
@@ -10,6 +10,8 @@
 #include <linux/module.h>
 #include <linux/pci.h>
 #include <linux/init.h>
+#include <linux/string.h>
+#include <linux/slab.h>
 #include <linux/agp_backend.h>
 
 #include "agp.h"
index c9ac731504f229a11f18f588f23e1f8dc1d0df27..40083241804eee1b48f09902e7c67a82d0cf7276 100644 (file)
@@ -6,6 +6,7 @@
 #include <linux/pci.h>
 #include <linux/agp_backend.h>
 #include <linux/module.h>
+#include <linux/slab.h>
 
 #include "agp.h"
 
index a9fb12c20eb72e92aa343413094270022a159e47..71ea59a1dbebf982fecbd86cc06fa516d2bcd152 100644 (file)
@@ -5,6 +5,8 @@
 #include <linux/module.h>
 #include <linux/pci.h>
 #include <linux/init.h>
+#include <linux/string.h>
+#include <linux/slab.h>
 #include <linux/agp_backend.h>
 #include "agp.h"
 
index 475cc5e555e1c43626ed18be91df2e90babcf5a4..6d3449761914cc3099298d3456c86906ec8cddb3 100644 (file)
@@ -15,6 +15,8 @@
 #include <linux/device.h>
 #include <linux/kdev_t.h>
 #include <linux/err.h>
+#include <linux/slab.h>
+#include <linux/string.h>
 
 #include "drm_core.h"
 #include "drmP.h"
index 613aed9e1840a15e4843e396591dc205a5ceecf1..d1fe05e83882b57176b93f9be0f89d23478242da 100644 (file)
@@ -53,6 +53,8 @@
 #include <linux/ioport.h>
 #include <linux/init.h>
 #include <linux/bitops.h>
+#include <linux/sched.h>       /* cond_resched() */
+
 #include <asm/io.h>
 #include <asm/uaccess.h>
 #include <asm/system.h>
index 2865dac0a81396a059f83aa3d0435da697c041d7..e75045fe2641405dc0d772486c2fb2e0e930d815 100644 (file)
@@ -28,6 +28,7 @@
 #include <linux/init.h>
 #include <linux/ioport.h>
 #include <linux/timer.h>
+#include <linux/jiffies.h>
 #include <asm/io.h>
 #include <asm/uaccess.h>
 
index 7fc2188386d96b56ac062cf4830736a6f6222a79..d8dede575402e14ab31952fec1d249cb0156b008 100644 (file)
@@ -45,6 +45,8 @@
 #include <linux/fs.h>
 #include <linux/reboot.h>
 #include <linux/init.h>
+#include <linux/jiffies.h>
+#include <linux/timer.h>
 #include <asm/uaccess.h>
 #include <asm/io.h>
 
index 427ad51b7a3519f23844d4c012402c50bec150e7..37c9e13ad3acfc1c20c9592b4c89c6ead8bfff51 100644 (file)
@@ -66,7 +66,7 @@
 #include <linux/init.h>
 #include <linux/spinlock.h>
 #include <linux/reboot.h>
-
+#include <linux/sched.h>       /* TASK_INTERRUPTIBLE, set_current_state() and friends */
 #include <asm/uaccess.h>
 #include <asm/io.h>
 
index 72501be79b0c6a93b4affbf27a1dcd74c346b20e..4ee9974ad8cbaec08ada8758d120c8bb32fdbc48 100644 (file)
@@ -63,6 +63,7 @@
 #include <linux/notifier.h>
 #include <linux/reboot.h>
 #include <linux/init.h>
+#include <linux/jiffies.h>
 
 #include <asm/io.h>
 #include <asm/uaccess.h>
index 20e5eb8667f2a738d9bbb16031cf0e6a4dc22733..a91edaf3a350a1d7230740fe7832f537e85986f3 100644 (file)
@@ -47,6 +47,8 @@
 #include <linux/notifier.h>
 #include <linux/reboot.h>
 #include <linux/init.h>
+#include <linux/jiffies.h>
+
 #include <asm/uaccess.h>
 
 #define PFX "SoftDog: "
index f014e639088ca13d923df980234b998244062983..c57a3871184ca0d419698ffb3b2cf10d8c155185 100644 (file)
@@ -38,6 +38,7 @@
 #include <linux/module.h>
 #include <linux/errno.h>
 #include <linux/slab.h>
+#include <linux/sched.h>       /* INIT_WORK, schedule_work(), flush_scheduled_work() */
 
 #include <rdma/ib_cache.h>
 
index 89ce9dc210d40b0e271996e8bd8736205bc95db7..acda7d63d6feb9bf24d481f81243e6d991931133 100644 (file)
@@ -43,6 +43,7 @@
 #include <linux/dma-mapping.h>
 #include <linux/kref.h>
 #include <linux/idr.h>
+#include <linux/workqueue.h>
 
 #include <rdma/ib_pack.h>
 #include <rdma/ib_sa.h>
index 889e85096736c198ef2cbc6a6525cfafcd06c7ea..22fdc446f25cdcd0d3100cd20dd800d7b7d42830 100644 (file)
@@ -34,6 +34,8 @@
  */
 
 #include <linux/init.h>
+#include <linux/string.h>
+#include <linux/slab.h>
 
 #include <rdma/ib_verbs.h>
 #include <rdma/ib_cache.h>
index 8561b297a19b4162f8a1b90565327e8585f2c34f..1229c604c6e0258e49c73d5d4a4d26f695587c14 100644 (file)
@@ -34,6 +34,9 @@
  * $Id: mthca_mad.c 1349 2004-12-16 21:09:43Z roland $
  */
 
+#include <linux/string.h>
+#include <linux/slab.h>
+
 #include <rdma/ib_verbs.h>
 #include <rdma/ib_mad.h>
 #include <rdma/ib_smi.h>
index b47ea7daf0886cdf2eeb41e0d3c9824ef3b5e1b6..2fc449da418d280e534472cebe9ea8797ed7504c 100644 (file)
@@ -33,6 +33,8 @@
  */
 
 #include <linux/init.h>
+#include <linux/string.h>
+#include <linux/slab.h>
 
 #include "mthca_dev.h"
 #include "mthca_cmd.h"
index 0576056b34f463742b7979ac9791b5bde002d8d0..bd1338682074bff3f01e3c7fd66945b57429e5a8 100644 (file)
@@ -35,6 +35,8 @@
 
 #include <linux/module.h>
 #include <linux/moduleparam.h>
+#include <linux/string.h>
+#include <linux/slab.h>
 
 #include "mthca_profile.h"
 
index 62ff091505da73e43dc074319f5e58c14d89dfe4..7c9afde5ace56ba73258a7d0505df408a45c7139 100644 (file)
@@ -36,6 +36,8 @@
  */
 
 #include <linux/init.h>
+#include <linux/string.h>
+#include <linux/slab.h>
 
 #include <rdma/ib_verbs.h>
 #include <rdma/ib_cache.h>
index 4f995391dd1d8176e7ff0cc25f4ac5b049288ae3..df5e494a9d3887ca9b71c9cd8721c7ffdaea0d54 100644 (file)
@@ -37,6 +37,7 @@
 #include <linux/errno.h>
 #include <linux/pci.h>
 #include <linux/delay.h>
+#include <linux/slab.h>
 
 #include "mthca_dev.h"
 #include "mthca_cmd.h"
index 1c8791ded6ffc442d200b91a4cc58a69c454cbb4..8e9219842be42a687e08f20cfdd7a04a72e2ca65 100644 (file)
@@ -32,6 +32,8 @@
  * $Id$
  */
 
+#include <asm/page.h>          /* PAGE_SHIFT */
+
 #include "mthca_dev.h"
 #include "mthca_memfree.h"
 
index ab09cf4093e32595cbd84824db790e73f91d2881..0506934244f001861f309f40fa33e0eee4e0fc3b 100644 (file)
@@ -21,6 +21,7 @@
 #include <linux/slab.h>
 #include <linux/delay.h>
 #include <linux/kthread.h>
+#include <linux/sched.h>       /* HZ */
 
 /*#include <asm/io.h>*/
 
index bf65430181faf0f2ee5db443f950bd35c90963f8..4571ea3a4b92f77004cebe725bf14c1d979b5b56 100644 (file)
@@ -34,6 +34,7 @@
 #include <linux/init.h>
 #include <linux/gameport.h>
 #include <linux/input.h>
+#include <linux/jiffies.h>
 
 #define DRIVER_DESC    "FP-Gaming Assasin 3D joystick driver"
 
index 9d95459f4bcbf4839b0aa3489c3b3b908b1e436e..704bf70f1db739b7860b0a3b4c67b10e867c06ab 100644 (file)
@@ -34,6 +34,7 @@
 #include <linux/input.h>
 #include <linux/gameport.h>
 #include <linux/init.h>
+#include <linux/jiffies.h>
 
 #define DRIVER_DESC    "Logitech ADI joystick family driver"
 
index c75ac6eb1ffbcd526443b92435cc12b2696733de..3121961e3e7c8876153fc70a41448f88d8468913 100644 (file)
@@ -38,6 +38,7 @@
 #include <linux/init.h>
 #include <linux/input.h>
 #include <linux/gameport.h>
+#include <linux/jiffies.h>
 #include <asm/timex.h>
 
 #define DRIVER_DESC    "Analog joystick and gamepad driver"
index 9a3dfc724a41aee1ee680c638c96255757e5faf5..1909f7ef340c7b939259e8b398f6dfec3b80fc2d 100644 (file)
@@ -34,6 +34,7 @@
 #include <linux/init.h>
 #include <linux/gameport.h>
 #include <linux/input.h>
+#include <linux/jiffies.h>
 
 #define DRIVER_DESC    "Creative Labs Blaster GamePad Cobra driver"
 
index e151f8c5bcb9faceb2958a32e04f74733c5ad0fe..8a3ad455eb385c2dc79285fe5db31f48c7126bdf 100644 (file)
@@ -35,6 +35,7 @@
 #include <linux/init.h>
 #include <linux/input.h>
 #include <linux/gameport.h>
+#include <linux/jiffies.h>
 
 #define DRIVER_DESC    "Genius Flight 2000 joystick driver"
 
index e206bb56e53ce383502a60cd9a5f0cb8020b24e8..a936e7aedb103552e617010d7260a74664c6ff29 100644 (file)
@@ -34,6 +34,7 @@
 #include <linux/slab.h>
 #include <linux/gameport.h>
 #include <linux/input.h>
+#include <linux/jiffies.h>
 
 #define DRIVER_DESC    "Gravis GrIP protocol joystick driver"
 
index a0ba93ccac7255433e6dd3e46fd30c6d71a6aa88..51a912222e85e6b93e4a6f8e4fc35b245db14341 100644 (file)
@@ -19,6 +19,7 @@
 #include <linux/input.h>
 #include <linux/delay.h>
 #include <linux/proc_fs.h>
+#include <linux/jiffies.h>
 
 #define DRIVER_DESC    "Gravis Grip Multiport driver"
 
index c528473c09d8945448791dad332c8a52b28793d0..6e2c721c26bae3229b9a0a1a87a15f547a416dec 100644 (file)
@@ -35,6 +35,7 @@
 #include <linux/init.h>
 #include <linux/gameport.h>
 #include <linux/input.h>
+#include <linux/jiffies.h>
 
 #define DRIVER_DESC    "Guillemot Digital joystick driver"
 
index 8511ee7bb2637b8482182e7e7966702be2ac1ee0..c4ed01758226ae34b07f4210461245c6a1e69c1f 100644 (file)
@@ -38,6 +38,7 @@
 #include <linux/init.h>
 #include <linux/gameport.h>
 #include <linux/input.h>
+#include <linux/jiffies.h>
 
 #define DRIVER_DESC    "InterAct digital joystick driver"
 
index 4234ccaf9146d6b07fe06c673031496365507155..88ec5a918f2e80ea980f7098075553f5a782f94f 100644 (file)
@@ -34,6 +34,7 @@
 #include <linux/kernel.h>
 #include <linux/delay.h>
 #include <linux/init.h>
+#include <linux/slab.h>
 
 #define DRIVER_DESC    "Gameport data dumper module"
 
index eaaad45cc7501d252453e5da298df139cdffd25a..78dd163cd7021cb6d7f079a443c07d0dc5ce6562 100644 (file)
@@ -33,6 +33,7 @@
 #include <linux/init.h>
 #include <linux/input.h>
 #include <linux/gameport.h>
+#include <linux/jiffies.h>
 
 #define DRIVER_DESC    "Microsoft SideWinder joystick family driver"
 
index 3a7d1bb46472b7c616c22ace3706029ea2c70edd..60e2aac7d06ec955e873f40dc8c3cd5f97a3c947 100644 (file)
@@ -38,6 +38,7 @@
 #include <linux/init.h>
 #include <linux/gameport.h>
 #include <linux/input.h>
+#include <linux/jiffies.h>
 
 #define DRIVER_DESC    "ThrustMaster DirectConnect joystick driver"
 
index e3c44ffae67420d75200ac6a807e0e1e3fe6aecb..1c9426fd5205665ff0ac45ba9ef35321489d2680 100644 (file)
@@ -40,6 +40,7 @@
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/string.h>
+#include <asm/semaphore.h>
 
 #define PREFIX "HP SDC MLC: "
 
index 3abd7fc6e5ef3e0331cc080a61a214b2be27066f..7b564c0dd996cb305232922ef06d76c4996e1f08 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/ctype.h>
+#include <linux/sched.h>       /* current */
 
 MODULE_DESCRIPTION("CAPI4Linux: /dev/capi/ filesystem");
 MODULE_AUTHOR("Carsten Paeth");
index 1ee003346923d7ca6a74a1fd0e6ba4ab7c773083..c34c96d189071a063f60ff055a2225b4d10fd306 100644 (file)
@@ -17,6 +17,8 @@
 #include <linux/pci_ids.h>
 #include <linux/init.h>
 #include <linux/module.h>
+#include <linux/slab.h>
+
 #include <asm/machdep.h>
 #include <asm/macio.h>
 #include <asm/pmac_feature.h>
index 76d430aa243faaebfa820572c8794122c885c09d..e7adf89fae412d49c74a56b2df0028ed20264165 100644 (file)
@@ -29,6 +29,7 @@
 #include <linux/module.h>
 #include <linux/device.h>
 #include <linux/mca.h>
+#include <linux/string.h>
 
 /**
  *     mca_device_read_stored_pos - read POS register from stored data
index 06f4d4686a6c7176f441061cf89ed27a4ef1e4a0..31fccb4f05d6ad8ade936d8b4aec9edaf82bf019 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <linux/module.h>
 #include <linux/moduleparam.h>
+#include <linux/string.h>
 #include <media/ir-common.h>
 
 /* -------------------------------------------------------------------------- */
index 88757e2634e5c85244dfb5dc79ec604b9e7c2a55..2aa767f9bd7dd88f797c8b9d48d485289661cb8a 100644 (file)
@@ -36,6 +36,7 @@
 #include <linux/vmalloc.h>
 #include <linux/delay.h>
 #include <linux/rwsem.h>
+#include <linux/sched.h>
 
 #include "dvb_ca_en50221.h"
 #include "dvb_ringbuffer.h"
index f5fdc5c3e605cd9c03cafad821fa252e20e34e1f..f6d4ee78bdd43d84b63402dba4a42b13e0713c13 100644 (file)
@@ -36,6 +36,9 @@
 #include <linux/moduleparam.h>
 #include <linux/device.h>
 #include <linux/firmware.h>
+#include <linux/jiffies.h>
+#include <linux/string.h>
+#include <linux/slab.h>
 
 #include "dvb_frontend.h"
 #include "bcm3510.h"
index 21433e1831e744f22e55cef34afdbe555eb75a92..6b05536086109fd40a1b3c1a9a9c3a9e89b58365 100644 (file)
@@ -27,6 +27,8 @@
 #include <linux/moduleparam.h>
 #include <linux/init.h>
 #include <linux/delay.h>
+#include <linux/string.h>
+#include <linux/slab.h>
 
 #include "dib3000-common.h"
 #include "dib3000mb_priv.h"
index 441de665fec32aa28850d6b680fdc6a6ea638080..c024fad173370f62f8222cbcb947de31b530bf0a 100644 (file)
@@ -26,6 +26,8 @@
 #include <linux/moduleparam.h>
 #include <linux/init.h>
 #include <linux/delay.h>
+#include <linux/string.h>
+#include <linux/slab.h>
 
 #include "dib3000-common.h"
 #include "dib3000mc_priv.h"
index cff93b9d8ab2653e141fdd2ab466ac7b4f5c8bc2..794be520d5902fdad363d1a44486a76d9f5ecafc 100644 (file)
@@ -22,6 +22,8 @@
 #include <linux/module.h>
 #include <linux/moduleparam.h>
 #include <linux/init.h>
+#include <linux/string.h>
+#include <linux/slab.h>
 
 #include "dvb_frontend.h"
 #include "dvb_dummy_fe.h"
index 7142b9c51dd2460e3b2c65ec91bddf08d877f8b0..8dde72bd10461fb5997cf13e6748e73bfee43535 100644 (file)
@@ -37,6 +37,8 @@
 #include <linux/moduleparam.h>
 #include <linux/init.h>
 #include <linux/delay.h>
+#include <linux/string.h>
+#include <linux/slab.h>
 #include <asm/byteorder.h>
 
 #include "dvb_frontend.h"
index e455aecd76b2f9c6732ff03e07c65fffbbf6dffe..e38454901dd12e31d281a9e2ec9d1210534ae43d 100644 (file)
@@ -29,6 +29,8 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
+#include <linux/string.h>
+#include <linux/slab.h>
 
 #include "dvb_frontend.h"
 #include "mt312_priv.h"
index cc1bc0edd65e7d14424744985cc83c89a0b054ae..f0c610f2c2dfe437e696417cf5aafbe8c3d71848 100644 (file)
@@ -35,6 +35,8 @@
 #include <linux/moduleparam.h>
 #include <linux/init.h>
 #include <linux/delay.h>
+#include <linux/string.h>
+#include <linux/slab.h>
 
 #include "dvb_frontend.h"
 #include "mt352_priv.h"
index 35a1d60f19273023ee5cfab5ce276a7aff74d0ce..30786b1911bdab48dbec0808f01a44bacb9230e1 100644 (file)
@@ -32,6 +32,8 @@
 #include <linux/moduleparam.h>
 #include <linux/device.h>
 #include <linux/firmware.h>
+#include <linux/string.h>
+#include <linux/slab.h>
 
 #include "dvb_frontend.h"
 #include "nxt2002.h"
index b6d0eecc59eb0ed75c445e3872c8b6a0c8b6138e..817b044c7fd1dd992898b6d680d62426d572729f 100644 (file)
@@ -36,6 +36,8 @@
 #include <linux/moduleparam.h>
 #include <linux/init.h>
 #include <linux/delay.h>
+#include <linux/string.h>
+#include <linux/slab.h>
 #include <asm/byteorder.h>
 
 #include "dvb_frontend.h"
index ad56a99584043a2ad340b434f3f5b42dae2d1bbd..8a9db23dd1b705578bffa9467e47990e06ee5a9d 100644 (file)
@@ -34,6 +34,8 @@
 #include <linux/moduleparam.h>
 #include <linux/device.h>
 #include <linux/firmware.h>
+#include <linux/string.h>
+#include <linux/slab.h>
 #include <asm/byteorder.h>
 
 #include "dvb_frontend.h"
index c7fe27fd530c8037e05c4ef289ab17923d293b92..f265418e326102ba5c56855a8fc4443aeb3289be 100644 (file)
@@ -26,6 +26,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 #include <linux/string.h>
 #include <linux/slab.h>
 #include <linux/delay.h>
+#include <linux/jiffies.h>
+#include <asm/div64.h>
 
 #include "dvb_frontend.h"
 #include "s5h1420.h"
index 764a95a2e212b2972434c743184d1f06002fb1f9..1c6b2e9264bc15c7b78cd8bac150ef8957abba41 100644 (file)
@@ -32,6 +32,8 @@
 #include <linux/device.h>
 #include <linux/firmware.h>
 #include <linux/delay.h>
+#include <linux/string.h>
+#include <linux/slab.h>
 
 #include "dvb_frontend.h"
 #include "sp8870.h"
index d868a6927a16d022d7643f7a4e2b2fc52ec680b2..73384e75625ee8ea1d0c83eb222142aba7866fa1 100644 (file)
@@ -14,6 +14,8 @@
 #include <linux/moduleparam.h>
 #include <linux/device.h>
 #include <linux/firmware.h>
+#include <linux/string.h>
+#include <linux/slab.h>
 
 #include "dvb_frontend.h"
 #include "sp887x.h"
index 8d09afd7545d8a054ef8efe0c1675173206f2dc6..6122ba754bc57167939c1342d21708025c09623c 100644 (file)
@@ -24,6 +24,8 @@
 #include <linux/module.h>
 #include <linux/string.h>
 #include <linux/delay.h>
+#include <linux/jiffies.h>
+#include <linux/slab.h>
 
 #include "dvb_frontend.h"
 #include "stv0297.h"
index 2d62931f20b547b4588190148d879b71cda3d708..889d9257215d733893d2deb16caed9ae66b4384d 100644 (file)
@@ -48,6 +48,7 @@
 #include <linux/moduleparam.h>
 #include <linux/string.h>
 #include <linux/slab.h>
+#include <linux/jiffies.h>
 #include <asm/div64.h>
 
 #include "dvb_frontend.h"
index 74cea9f8d72106d2561aa9c4695f99853cdf9bb3..3529c618f8287f3de6101ecf3e48dfa965c1f8c0 100644 (file)
 #include <linux/module.h>
 #include <linux/moduleparam.h>
 #include <linux/device.h>
+#include <linux/jiffies.h>
+#include <linux/string.h>
+#include <linux/slab.h>
+
 #include "dvb_frontend.h"
 #include "tda1004x.h"
 
index 168e013d23bd5478f06b048e3185c06e73b72c31..c05cf1861051b3271effd7136625e5cc6b3cd543 100644 (file)
@@ -30,6 +30,7 @@
 #include <linux/moduleparam.h>
 #include <linux/string.h>
 #include <linux/slab.h>
+#include <linux/jiffies.h>
 #include "dvb_frontend.h"
 #include "tda8083.h"
 
index df79d5e0aaedfe62f8ce700b2b9a9f2b952ad1be..e09214082e011ef974bdd09297786e3839eef424 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/slab.h>
 #include <linux/fs.h>
 #include <linux/miscdevice.h>
+#include <linux/sched.h>       /* current, TASK_*, schedule_timeout() */
 #include <linux/delay.h>
 #include <asm/uaccess.h>
 #include "miropcm20-rds-core.h"
index d9879965eb5096862282352b5bcc549def0f0ab9..8eb50cdb8ae1bb5c7a81d593a16a07aa75066fc5 100644 (file)
@@ -16,6 +16,8 @@
 #include <linux/module.h>
 #include <linux/i2o.h>
 #include <linux/delay.h>
+#include <linux/string.h>
+#include <linux/slab.h>
 #include "core.h"
 
 /**
index 0079a4be0af28a6eb6e8479100265e8d5a14d2aa..0fb9c4e2ad4c325e62e56ee37df4f8e98daed72e 100644 (file)
@@ -17,6 +17,9 @@
 #include <linux/module.h>
 #include <linux/rwsem.h>
 #include <linux/i2o.h>
+#include <linux/workqueue.h>
+#include <linux/string.h>
+#include <linux/slab.h>
 #include "core.h"
 
 #define OSM_NAME       "i2o"
index bda2c62648bac566529ccdbdd32f82bc33f1d7ca..b675b4ebbebdff558521b181d81b4eb2ab59b7c7 100644 (file)
 #include <linux/module.h>
 #include <linux/i2o.h>
 #include <linux/delay.h>
+#include <linux/workqueue.h>
+#include <linux/string.h>
+#include <linux/slab.h>
+#include <asm/param.h>         /* HZ */
 #include "core.h"
 
 #define OSM_NAME "exec-osm"
index 361da8d1d5e766e2cb7b5b98de5f5a309dce042b..61b837de4b6a134756e5af4eb0892b9a8c318685 100644 (file)
@@ -28,6 +28,7 @@
 #include <linux/module.h>
 #include <linux/i2o.h>
 #include <linux/delay.h>
+#include <linux/sched.h>
 #include "core.h"
 
 #define OSM_NAME       "i2o"
index 62d235a9a4e21930baa3ca972e5ee82509ca52ef..4f6778f3ee3e2a9d9714389805a56b6311111e3c 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/init.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
+#include <linux/slab.h>
 #include <linux/mtd/jedec.h>
 #include <linux/mtd/map.h>
 #include <linux/mtd/mtd.h>
index dfd335e4a2a80ca6e3da1bddbd920e7e4af606ce..df987a53ed9cf918c5c8d318e0dc8b1267f2a96e 100644 (file)
@@ -44,6 +44,7 @@
 #include <linux/types.h>
 #include <linux/init.h>
 #include <linux/errno.h>
+#include <linux/string.h>
 #include <linux/mtd/mtd.h>
 #ifdef HAVE_PARTITIONS
 #include <linux/mtd/partitions.h>
index a423a382095a7231f23391979df5f9a6145af580..765c0179c8df9097e476982c57131edea2399647 100644 (file)
@@ -22,6 +22,7 @@
 #include <linux/list.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
+#include <linux/slab.h>
 #include <linux/mtd/mtd.h>
 
 #define ERROR(fmt, args...) printk(KERN_ERR "phram: " fmt , ## args)
index 0ba0ff7d43b9593489659f6ffb933e73d9d33c4f..63104c73ca3c8bb7caadb6e3b038318fcffd06ec 100644 (file)
@@ -33,6 +33,7 @@
 #include <linux/string.h>
 #include <linux/ioport.h>
 #include <linux/device.h>
+#include <linux/slab.h>
 
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/map.h>
index da8584a662f4f4ad01ca7a7ced252f01cf609251..c68b31dc7e6d4979c363a8ac1e32bb0abba09f5b 100644 (file)
@@ -20,6 +20,7 @@
 #include <linux/ioport.h>
 #include <linux/kernel.h>
 #include <linux/init.h>
+#include <linux/slab.h>
 
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/map.h>
index 938c41f2f05699f01c6f199c98e06ce6fbae5093..e5b74169fde621167b96aa47cb127f7b098296a8 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/kernel.h>
 #include <linux/init.h>
 #include <linux/delay.h>
+#include <linux/slab.h>
 
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/map.h>
index 0bc79c93a58491c9cea700c786b5ff64fa0d5a85..f99519692cb7815d369577c0c54ede59e7332f1f 100644 (file)
 #include <linux/types.h>
 #include <linux/kernel.h>
 #include <linux/init.h>
-#include <asm/io.h>
+#include <linux/string.h>
+
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/map.h>
 #include <linux/mtd/partitions.h>
 #include <linux/mtd/concat.h>
 
+#include <asm/io.h>
+
 /*
 ** The DIL/NetPC keeps its BIOS in two distinct flash blocks.
 ** Destroying any of these blocks transforms the DNPC into
index ab6dbe2b8cce3a896e022c8e45e45103aebf1ced..1df6188926b3aa81e99b402bdaa265d4fa666d16 100644 (file)
 #include <linux/types.h>
 #include <linux/kernel.h>
 #include <linux/init.h>
-#include <asm/io.h>
+#include <linux/slab.h>
+
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/map.h>
 #include <linux/mtd/partitions.h>
 
+#include <asm/io.h>
 #include <asm/hardware.h>
+
 #ifdef CONFIG_EPXA10DB
 #define BOARD_NAME "EPXA10DB"
 #else
index 068bb6a545201f3b5b259f5df5205167b5c45143..00f7bbe5479e47d74aa5570e6d85d103d26f750d 100644 (file)
@@ -7,11 +7,14 @@
 #include <linux/types.h>
 #include <linux/kernel.h>
 #include <linux/init.h>
-#include <asm/io.h>
+#include <linux/string.h>
+
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/map.h>
 #include <linux/mtd/partitions.h>
 
+#include <asm/io.h>
+
 #define MAX_NUM_REGIONS                4
 #define MAX_NUM_PARTITIONS     8
 
index a9f86c7fbd52e7319c8825196070e54da6e20a0e..1e5d6e1d05f318c1f0e45c866ed465a825fe6b6c 100644 (file)
 #include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/string.h>
+#include <linux/slab.h>
+#include <linux/ioport.h>
+#include <linux/device.h>
+
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/map.h>
 #include <linux/mtd/partitions.h>
-#include <linux/ioport.h>
-#include <linux/device.h>
 
 #include <asm/io.h>
 #include <asm/hardware.h>
index 3fcc3288407437792479c456574ac09c50ee716e..da316e543237676e8fdf61a6a98923f06d27adca 100644 (file)
 #include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/string.h>
+#include <linux/slab.h>
+#include <linux/ioport.h>
+#include <linux/device.h>
+
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/map.h>
 #include <linux/mtd/partitions.h>
-#include <linux/ioport.h>
-#include <linux/device.h>
+
 #include <asm/io.h>
 #include <asm/mach/flash.h>
 
index 1298de475c9a7d047c860759683dd01e6c858cb9..2337e0c4675061419bb9ddc6f64c4f7ff9f40378 100644 (file)
 #include <linux/types.h>
 #include <linux/kernel.h>
 #include <linux/init.h>
+#include <linux/slab.h>
+
 #include <linux/dma-mapping.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/map.h>
 #include <linux/mtd/partitions.h>
+
 #include <asm/io.h>
 #include <asm/hardware.h>
 #include <asm/arch/pxa-regs.h>
index 87e93fa60588aa29384705ba8e904fc2df1c3b88..da0f8a692628a253f7a95831d8d44cb9664683d6 100644 (file)
 #include <linux/kernel.h>
 #include <linux/init.h>
 #include <linux/dma-mapping.h>
+#include <linux/slab.h>
+
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/map.h>
 #include <linux/mtd/partitions.h>
+
 #include <asm/io.h>
 #include <asm/hardware.h>
 #include <asm/arch/pxa-regs.h>
index 496109071cb10dc86bb828a0654ff295660f1ac0..da36e8dddd17e9833d222d108bb20fdabb53a4e3 100644 (file)
@@ -12,9 +12,9 @@
 #include <linux/module.h>
 #include <linux/types.h>
 #include <linux/kernel.h>
-
 #include <linux/errno.h>
 #include <linux/init.h>
+#include <linux/slab.h>
 
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/map.h>
index b17bca657daf53599d8e8328ee1110b08cb50e95..fa84566245a7093588a53df13f30774a4d323591 100644 (file)
@@ -36,6 +36,8 @@
 #include <linux/kernel.h>
 #include <linux/init.h>
 #include <linux/ioport.h>
+#include <linux/slab.h>
+
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/map.h>
 #include <linux/mtd/partitions.h>
index 18dbd3af1eaa652a34d4677a97f1742d4851d74c..d9c64e99ee32a7ae466499f0b053df0908dcefd6 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/kernel.h>
 #include <linux/pci.h>
 #include <linux/init.h>
+#include <linux/slab.h>
 
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/map.h>
index 118b04544cad36b11307b1d560f418e1b885b533..a0577ea00c3c974bb1121d5a11d9cac0765c82b4 100644 (file)
@@ -30,6 +30,7 @@
 #include <linux/string.h>
 #include <linux/ioport.h>
 #include <linux/device.h>
+#include <linux/slab.h>
 
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/map.h>
index 995e9991cb8dfa0ed3858b41a075ad3212c20af3..4e28b977f224120db3c5dc5d278c3593081accfb 100644 (file)
 #include <linux/types.h>
 #include <linux/kernel.h>
 #include <linux/init.h>
-#include <asm/io.h>
+#include <linux/slab.h>
 
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/map.h>
 #include <linux/mtd/partitions.h>
 
+#include <asm/io.h>
+
 #define FLASH_ADDR 0x40000000
 #define FLASH_SIZE 0x00800000
 #define FLASH_BANK_MAX 4
index b7c32c242bc712ce6e0bd87e358dc33eb40a8a56..400dd9c89883bb1462c85ae48646738abb8fb72b 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/init.h>
 #include <linux/slab.h>
 #include <linux/vmalloc.h>
+#include <linux/sched.h>       /* TASK_* */
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/blktrans.h>
 
index c534fd5d95cb979430101e8ed1cfcb8f39231994..16df1e4fb0e94d2efec9542e6114f0593c3ad3bf 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/slab.h>
 #include <linux/init.h>
 #include <linux/fs.h>
+#include <linux/sched.h>       /* TASK_* */
 #include <asm/uaccess.h>
 
 #include <linux/device.h>
index 8f66d093c80d5b15084dc233b8cb05e718e4ac76..f3e65af33a9c86d6338847ddb2b4c16ed5229774 100644 (file)
@@ -14,7 +14,7 @@
 #include <linux/types.h>
 #include <linux/kernel.h>
 #include <linux/slab.h>
-
+#include <linux/sched.h>       /* TASK_* */
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/concat.h>
 
index b47ebcb31e0fdf5a1116c0e2a99d387dbc2941f9..b58ba236a9eb8a5ffd479da0b56d88a041acc860 100644 (file)
@@ -51,6 +51,7 @@
 #include <linux/device.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/slab.h>
 
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/nand.h>
index a62a4345b46631d2f89f5cf6bca4d23f3e503bba..2d4639d6841f4a6c93e29d6d3a2c9d5713ca3309 100644 (file)
@@ -39,6 +39,7 @@
 #include <linux/init.h>
 #include <linux/errno.h>
 #include <linux/pci.h>
+#include <linux/string.h>
 #include "cpci_hotplug.h"
 
 #define DRIVER_VERSION "0.1"
index 790abadd816c31c84439ed65270b6a8df7867939..f7cb00da38dfabbfd32e6c6ec366bf261f9ed7e4 100644 (file)
@@ -36,6 +36,7 @@
 #include <linux/init.h>
 #include <linux/errno.h>
 #include <linux/pci.h>
+#include <linux/signal.h>      /* SA_SHIRQ */
 #include "cpci_hotplug.h"
 #include "cpcihp_zt5550.h"
 
index 8e47fa66e25ecaa2e8a9a024d6f6473aa2df0421..060d74775d7be77d5a636cf892322d353d4cc5a0 100644 (file)
@@ -37,6 +37,8 @@
 #include <linux/module.h>
 #include <linux/pci.h>
 #include <linux/init.h>
+#include <linux/string.h>
+#include <linux/slab.h>
 #include "pci_hotplug.h"
 #include "../pci.h"
 
index 3622965f89611cda42aef572a22dc30c091140e7..33b2c69a08295b786553b5697f5481b99e4c509f 100644 (file)
 #include <linux/types.h>
 #include <linux/pci.h>
 #include <linux/init.h>
+#include <linux/slab.h>
+
 #include <asm/uaccess.h>
 #ifdef CONFIG_IA64
 #include <asm/iosapic.h>
 #endif
+
 #include "pciehp.h"
 #include "pciehprm.h"
 #include "pciehprm_nonacpi.h"
index ad1017da8656c350c5b6390aa25e74d1ac7e4b0d..fcb66b9a0e289c1a16ad262beff5984dc42e6e08 100644 (file)
  */
 #include <linux/init.h>
 #include <linux/pci.h>
+#include <linux/string.h>
+
 #include <asm/pci-bridge.h>
 #include <asm/semaphore.h>
 #include <asm/rtas.h>
 #include <asm/vio.h>
+
 #include "../pci.h"
 #include "rpaphp.h"
 #include "rpadlpar.h"
index 46c157d26a2f9b90d6cfbe3d08fa1229c30a0d46..f7c12d7dfcfc35bc164163672b60ef817bc23ff5 100644 (file)
  *
  */
 #include <linux/pci.h>
+#include <linux/string.h>
+
 #include <asm/pci-bridge.h>
 #include <asm/rtas.h>
 #include <asm/machdep.h>
-#include "../pci.h"            /* for pci_add_new_bus */
 
+#include "../pci.h"            /* for pci_add_new_bus */
 #include "rpaphp.h"
 
 static struct pci_bus *find_bus_among_children(struct pci_bus *bus,
index 0e88154950838fa770e5cd21d172102b7272993f..daa89ae57123b52b97c0c4678c41867118ed39f9 100644 (file)
@@ -27,6 +27,9 @@
 #include <linux/kobject.h>
 #include <linux/sysfs.h>
 #include <linux/pci.h>
+#include <linux/string.h>
+#include <linux/slab.h>
+
 #include <asm/rtas.h>
 #include "rpaphp.h"
 
index abe2cf411e6865927d6470cd84c13c24b68655f3..08ad26a0cae70c2d209e6a30af0408758a4c9eed 100644 (file)
@@ -32,6 +32,8 @@
 #include <linux/types.h>
 #include <linux/pci.h>
 #include <linux/delay.h>
+#include <linux/sched.h>       /* signal_pending(), struct timer_list */
+
 #include "pci_hotplug.h"
 
 #if !defined(MODULE)
index d70fe5408417a169a66505e49cb136d0846b29e3..c6b40998eeb31cd3a9cc461e0df0b9f4460f3bc8 100644 (file)
@@ -32,6 +32,8 @@
 #include <linux/kernel.h>
 #include <linux/types.h>
 #include <linux/pci.h>
+#include <linux/slab.h>
+
 #include "shpchp.h"
 
 int shpchprm_get_physical_slot_number(struct controller *ctrl, u32 *sun, u8 busnum, u8 devnum)
index 8972e6a3aac0cce3850b5969d193b1f09106340b..ae986e590b48213544dd6f322147909bf52efcec 100644 (file)
@@ -8,6 +8,8 @@
 #include <linux/init.h>
 #include <linux/device.h>
 #include <linux/mempolicy.h>
+#include <linux/string.h>
+#include <linux/slab.h>
 #include "pci.h"
 
 /*
index 61b855c99e3927db5d5a621957f9abac1ffe5542..e74d75843047c24cf299cf53daad16635355d640 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/pci.h>
 #include <linux/module.h>
 #include <linux/spinlock.h>
+#include <linux/string.h>
 #include <asm/dma.h>   /* isa_dma_bridge_buggy */
 #include "pci.h"
 
index 14f05d22bb70bc62adc63a5263eec5a278d32f32..467a4ceccf1066d02ea1cf0942cafc9e99fc20bc 100644 (file)
@@ -11,6 +11,8 @@
 #include <linux/kernel.h>
 #include <linux/errno.h>
 #include <linux/pm.h>
+#include <linux/string.h>
+#include <linux/slab.h>
 #include <linux/pcieport_if.h>
 
 #include "portdrv.h"
index 3c565ce7f77b5aada24f3e4f44b89533c86bc14e..02260141dc8107be19d943f4e35475b65559cf30 100644 (file)
@@ -12,6 +12,7 @@
 #include <linux/errno.h>
 #include <linux/pm.h>
 #include <linux/init.h>
+#include <linux/slab.h>
 #include <linux/pcieport_if.h>
 
 #include "portdrv.h"
index 49bd21702314ccda11e716c1b99aa2e2d1229ade..598a115cd00e762abb868b76e16447fa11faa0a3 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/config.h>
 #include <linux/kernel.h>
 #include <linux/pci.h>
+#include <linux/slab.h>
 
 #include "pci.h"
 
index 94442ffd4aeddcd100ba9d573c6a8866fdb21b1b..cbb2749db178e1332be1c0693ce627ad29c502fa 100644 (file)
@@ -12,6 +12,8 @@
 #include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/pnp.h>
+#include <linux/slab.h>
+#include <linux/bitmap.h>
 #include "base.h"
 
 DECLARE_MUTEX(pnp_res_mutex);
index b0ca65b68645624e1ddd78ac1f4de6d71c4156e4..5e38cd7335f72d29a7c82540bab43d9298c9dc55 100644 (file)
@@ -7,6 +7,8 @@
 #include <linux/ctype.h>
 #include <linux/pnp.h>
 #include <linux/pnpbios.h>
+#include <linux/string.h>
+#include <linux/slab.h>
 
 #ifdef CONFIG_PCI
 #include <linux/pci.h>
index 8cc4f1a940dcde952f6aafb124762185fb77fdeb..c05b069c29965e9894c5b87a5c6ce10627470eb9 100644 (file)
 #include <linux/list.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
+#include <linux/slab.h>
+#include <linux/timex.h>       /* get_clock() */
 
 #include <asm/ccwdev.h>
 #include <asm/cio.h>
 #include <asm/cmb.h>
+#include <asm/div64.h>
 
 #include "cio.h"
 #include "css.h"
index 1c2659766c09f57da799c84fa4207c4ae2f306cd..811c9d15063765214223bd77033726cf3dc7634a 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <asm/ccwdev.h>
 #include <asm/cio.h>
+#include <asm/param.h>         /* HZ */
 
 #include "cio.h"
 #include "css.h"
index fbe4202a3f6f462e2104e7acf84368f5cd15198f..c1c89f4fd4e3c3815c8fe7c9ddfaab2d4b3e4084 100644 (file)
@@ -11,6 +11,8 @@
 #include <linux/module.h>
 #include <linux/config.h>
 #include <linux/init.h>
+#include <linux/jiffies.h>
+#include <linux/string.h>
 
 #include <asm/ccwdev.h>
 #include <asm/cio.h>
index 771e97ef136e8ad3c27f08eab77c76de77b8a2ac..b856e140e65f9a1ba441fa2d6ef4f9e1b3a3aa6c 100644 (file)
@@ -26,6 +26,7 @@
  */
 #include <linux/module.h>
 #include <linux/init.h>
+#include <linux/sched.h>       /* workqueue stuff, HZ */
 #include <scsi/scsi_device.h>
 #include <scsi/scsi_host.h>
 #include <scsi/scsi_transport.h>
index 8bb8222ea58961e8b654621befd41700e5588904..d2caa35059d903625529efe8270916fb769a3303 100644 (file)
@@ -19,6 +19,9 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 #include <linux/module.h>
+#include <linux/string.h>
+#include <linux/slab.h>
+
 #include <scsi/scsi.h>
 #include <scsi/scsi_host.h>
 #include <scsi/scsi_device.h>
index e753ba27dc591a09977a4df0562103229ee13775..a1a58e1d5ad327330b96603c18afd511bbf9dd40 100644 (file)
@@ -37,6 +37,9 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
+
+#include <linux/slab.h>
+
 #include "sym_glue.h"
 #include "sym_nvram.h"
 
index 3131a6bf7ab7e77626be57786a4dde3ac5acf639..3a264a40821646c4db6cf9f965d7374944301afd 100644 (file)
@@ -37,6 +37,8 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
+#include <linux/gfp.h>
+
 #ifndef SYM_HIPD_H
 #define SYM_HIPD_H
 
index f056276b08a1ddd393e5285da4b9e152a450d947..28757cb9d246665ad8e4eba116f19679657aea57 100644 (file)
@@ -16,6 +16,8 @@
 #include <linux/types.h>
 #include <linux/list.h>
 #include <linux/superhyway.h>
+#include <linux/string.h>
+#include <linux/slab.h>
 
 static int superhyway_devices;
 
index 45efeed1fcc36faf2a947de55e8ff447345fa236..49815ec4b842374959f3aab35fa388d290196168 100644 (file)
@@ -14,6 +14,9 @@
  * This file is licenced under the GPL.
  */
 
+#include <linux/signal.h>      /* SA_INTERRUPT */
+#include <linux/jiffies.h>
+
 #include <asm/hardware.h>
 #include <asm/io.h>
 #include <asm/mach-types.h>
index bf1d5ab4aa3a0cfb58bcef2e08741084f1c64b25..7ce1d9ef0289ed3bba31b89b035d7f7a8a9e9d09 100644 (file)
@@ -14,6 +14,8 @@
  * This file is licenced under the GPL.
  */
  
+#include <linux/jiffies.h>
+
 #ifdef CONFIG_PPC_PMAC
 #include <asm/machdep.h>
 #include <asm/pmac_feature.h>
index d287dcccd4158c598de9f14bbdabecc6b5f2c98c..f4a4aeda40b7e3f1876f20dfa7371adeaba70db7 100644 (file)
@@ -20,6 +20,7 @@
  */
 
 #include <linux/device.h>
+#include <linux/signal.h>
 #include <asm/mach-types.h>
 #include <asm/hardware.h>
 #include <asm/arch/pxa-regs.h>
index 88c517a4c178fa7ed9f884aed5dd55d465c401e3..9e293e139a0e8e05737ebf4d555116aef745c684 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <linux/spinlock.h>
 #include <linux/list.h>
+#include <linux/sched.h>       /* schedule_timeout() */
 #include <linux/delay.h>
 
 #include "w1_family.h"
index 04ca8840acf1c4d394c32bb6bcb6013f19a2d45c..87c29d7b6c17aa969356bd8a67fcefc8ac552615 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/kernel.h>
 #include <linux/zorro.h>
 #include <linux/stat.h>
+#include <linux/string.h>
 
 #include "zorro.h"
 
index d3c05dfe20d20a9f77278f09c41fbe55f415ae98..0f2b40605b06c4bccb44cc9809de366a0bed8806 100644 (file)
@@ -16,6 +16,8 @@
 #include <linux/init.h>
 #include <linux/zorro.h>
 #include <linux/bitops.h>
+#include <linux/string.h>
+
 #include <asm/setup.h>
 #include <asm/amigahw.h>
 
index 44082bfdfec960037be53f9cff8a412711bf6e1b..9f1072836c8ea5c940c916d8236365a26c78da84 100644 (file)
@@ -12,6 +12,7 @@
 #include <linux/kmod.h>
 #include <linux/init.h>
 #include <linux/module.h>
+#include <linux/sched.h>       /* for 'current' */
 #include <asm/uaccess.h>
 
 /*
index 0f224384f176fa1d529e9c3feb06d576de1b1096..8210ac16a36827df97a8ae43e04a4efe979892a7 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/jffs2.h>
 #include <linux/mtd/mtd.h>
 #include <linux/completion.h>
+#include <linux/sched.h>
 #include "nodelist.h"
 
 
index 996d922e503e188f2cbd502618833743a402bae0..316133c626b7424fc68ccfce9043c5d92c6e359d 100644 (file)
@@ -18,6 +18,8 @@
 #include <linux/mtd/mtd.h>
 #include <linux/crc32.h>
 #include <linux/mtd/nand.h>
+#include <linux/jiffies.h>
+
 #include "nodelist.h"
 
 /* For testing write failures */
index ff7f80f48df1ba2fb87b1fac151d826532b2867d..d068176b7ad7f4d7242e2417f87e3f67043b1d23 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/completion.h>
 #include <linux/workqueue.h>
 #include <linux/cpumask.h>
+#include <asm/div64.h>
 
 #define CPUFREQ_NAME_LEN 16
 
index cd623eccdbea61c8e8b8eba1f931645b95c01115..2401dea2b867c798808f0433f575db7e0888f9b6 100644 (file)
@@ -12,6 +12,7 @@
 #include <asm/io.h>
 #include <linux/list.h>
 #include <linux/device.h>
+#include <linux/timer.h>
 
 struct gameport {
 
index f88577ca3b3ad0d2670f3e392edd4d457c0dd10f..5e19a7ba69b2b9ff449ca5d276fdb27bc233fce7 100644 (file)
@@ -31,6 +31,7 @@
 #include <linux/i2c-id.h>
 #include <linux/mod_devicetable.h>
 #include <linux/device.h>      /* for struct device */
+#include <linux/sched.h>       /* for completion */
 #include <asm/semaphore.h>
 
 /* --- For i2c-isa ---------------------------------------------------- */
index 92300325dbcd30254b1bc72c0b65cd39c1b35b2d..d79c8a4bc4f854b872552e6a958d4a22291b7b92 100644 (file)
 /* How many different OSM's are we allowing */
 #define I2O_MAX_DRIVERS                8
 
-#include <asm/io.h>
-#include <asm/semaphore.h>     /* Needed for MUTEX init macros */
 #include <linux/pci.h>
 #include <linux/dma-mapping.h>
+#include <linux/string.h>
+#include <linux/slab.h>
+#include <linux/workqueue.h>   /* work_struct */
+
+#include <asm/io.h>
+#include <asm/semaphore.h>     /* Needed for MUTEX init macros */
 
 /* message queue empty */
 #define I2O_QUEUE_EMPTY                0xffffffff
index b6cc10bf8dfca811eeeb0014ca217ebeca419dfc..cbe7d8008042baa9385d3e3ec01aaf48b485b614 100644 (file)
@@ -1,5 +1,7 @@
 #ifdef __KERNEL__
 
+#include <asm/semaphore.h>
+
 typedef struct kobject *kobj_probe_t(dev_t, int *, void *);
 struct kobj_map;
 
index 142963f01d2947d9c4c2c52c84afc8a8d020f34e..fc28841f340975181d6813c5f5d701921aad9219 100644 (file)
@@ -8,7 +8,10 @@
 #include <linux/config.h>
 #include <linux/types.h>
 #include <linux/list.h>
+#include <linux/string.h>
+
 #include <linux/mtd/compatmac.h>
+
 #include <asm/unaligned.h>
 #include <asm/system.h>
 #include <asm/io.h>
index 12cd9cf65e8ffe3b6a2b58042336a8e11d5092ef..33fc8cb8ddfbaedf234300c397a87b50895e1ec7 100644 (file)
@@ -11,6 +11,7 @@
 #define _LINUX_SERIAL_H
 
 #ifdef __KERNEL__
+#include <linux/types.h>
 #include <asm/page.h>
 
 /*
index fc5bb4e91a5846303ecb9be8a8058768d000d7e1..7dac8f04d28e1aee64cec1a140bd52aded10edd1 100644 (file)
@@ -8,6 +8,7 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/err.h>
+#include <linux/slab.h>
 
 struct ts_config;
 
index c8592c7e8eaa5bc2bb90411d8f7fa5e8134bb854..e788bbc5657d70dd057adaa4658b4307bb77d035 100644 (file)
@@ -17,6 +17,7 @@
 
 #include <linux/config.h>
 #include <linux/device.h>
+#include <linux/sched.h>       /* task_struct, completion */
 
 #include <pcmcia/cs_types.h>
 #include <pcmcia/cs.h>
index e6b61fab66ddf69a66adc5f81f6647fe2ad11da9..7529f4388bb46df6655e61364217c78e2199ea18 100644 (file)
@@ -4,6 +4,7 @@
 #include <linux/dma-mapping.h>
 #include <linux/list.h>
 #include <linux/types.h>
+#include <linux/timer.h>
 
 struct request;
 struct scatterlist;
index b0d4454373721da80e76a63e94dd18c20e7494a9..c04405bead2d5f1482c98e3bba0c94657c05b259 100644 (file)
@@ -28,6 +28,7 @@
 #define SCSI_TRANSPORT_FC_H
 
 #include <linux/config.h>
+#include <linux/sched.h>
 
 struct scsi_transport_template;
 
index 13bcec151b57f8ebc68f1665a688f200f8c63d89..39277dd6bf90911916db77f2370e2db3a6e070f4 100644 (file)
@@ -18,6 +18,7 @@
 #include <linux/fs.h>
 #include <linux/err.h>
 #include <linux/proc_fs.h>
+#include <linux/sched.h>       /* for cond_resched */
 #include <linux/mm.h>
 
 #include <asm/sections.h>
index f3ea492ab44dfcfc05e2fad4027e303f9b69d9dd..ce4915dd683a3f35b120a31e1b1a356beb2fb94c 100644 (file)
@@ -35,6 +35,7 @@
 #include <linux/spinlock.h>
 #include <linux/hash.h>
 #include <linux/init.h>
+#include <linux/slab.h>
 #include <linux/module.h>
 #include <linux/moduleloader.h>
 #include <asm-generic/sections.h>
index 1a8614bac5d5c819110ae67bd21efca75845b600..47ba69547945a7ffcec55a7fc72f8ae35a9c4c77 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/module.h>
 #include <linux/device.h>
 #include <linux/err.h>
+#include <linux/slab.h>
 
 #if 0
 #define DEBUGP printk
index 253d3004ace90edae789bb23f16c2919a4e6830c..a181abed89f6f119687e5082208f8debe11dd383 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/string.h>
 #include <linux/module.h>
 #include <linux/stat.h>
+#include <linux/slab.h>
 
 /**
  *     populate_dir - populate directory with attributes.
index 42c08ef828c55e940cdc226e7ed19811e1b75562..eddc9b3d38762ed17b06da35f26450f34c9ffd1a 100644 (file)
@@ -5,6 +5,7 @@
  */
 #include <linux/module.h>
 #include <linux/kallsyms.h>
+#include <linux/sched.h>
 
 unsigned int debug_smp_processor_id(void)
 {
index ddc4d35df289cff02a996ba41d0d560ce9ccdead..5f3b51ffa1dc2a6897b09b42cee81ef2870b9ec8 100644 (file)
@@ -7,6 +7,7 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/sort.h>
+#include <linux/slab.h>
 
 static void u32_swap(void *a, void *b, int size)
 {
index e4e9031dd9c38709b82fd7de2da931ada0cec248..b07db5ca3f66febf20041ac5a6606d097dea2a15 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/ctype.h>
 #include <linux/kernel.h>
 
+#include <asm/page.h>          /* for PAGE_SIZE */
 #include <asm/div64.h>
 
 /**
index 3ecef4689f1b23d6a2454f443413c447e2a72bbc..fd25aca251200dd63c469b464945849192d4d2e4 100644 (file)
@@ -55,6 +55,7 @@
 #include <linux/pci.h>
 #include <linux/ac97_codec.h>
 #include <asm/uaccess.h>
+#include <asm/semaphore.h>
 
 #define CODEC_ID_BUFSZ 14