Browse Source

[PATCH] fix remaining missing includes

Fix more include file problems that surfaced since I submitted the previous
fix-missing-includes.patch.  This should now allow not to include sched.h
from module.h, which is done by a followup patch.

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>
Tim Schmielau 19 years ago
parent
commit
8c65b4a604
52 changed files with 89 additions and 1 deletions
  1. 1 0
      arch/arm/mach-aaec2000/clock.c
  2. 1 0
      arch/arm/mach-epxa10db/mm.c
  3. 1 0
      arch/arm/mach-pxa/corgi_lcd.c
  4. 1 0
      arch/ppc/syslib/ppc_sys.c
  5. 1 0
      drivers/base/power/sysfs.c
  6. 1 0
      drivers/char/agp/amd64-agp.c
  7. 1 0
      drivers/hwmon/hwmon.c
  8. 3 0
      drivers/infiniband/core/agent.c
  9. 2 0
      drivers/infiniband/core/packer.c
  10. 3 0
      drivers/infiniband/core/sysfs.c
  11. 1 0
      drivers/infiniband/core/ud_header.c
  12. 1 0
      drivers/infiniband/core/verbs.c
  13. 3 0
      drivers/infiniband/hw/mthca/mthca_catas.c
  14. 3 0
      drivers/infiniband/hw/mthca/mthca_srq.c
  15. 1 0
      drivers/media/dvb/frontends/cx24110.c
  16. 1 0
      drivers/message/i2o/exec-osm.c
  17. 2 0
      drivers/mfd/mcp-core.c
  18. 1 0
      drivers/pci/hotplug/pciehprm_nonacpi.c
  19. 1 0
      drivers/pci/pci-driver.c
  20. 2 0
      drivers/scsi/atari_dma_emul.c
  21. 2 0
      drivers/scsi/raid_class.c
  22. 2 0
      drivers/scsi/scsi_transport_sas.c
  23. 1 0
      drivers/scsi/sym53c8xx_2/sym_hipd.c
  24. 1 0
      fs/9p/error.c
  25. 3 0
      include/asm-alpha/pgtable.h
  26. 2 0
      include/asm-cris/processor.h
  27. 2 0
      include/asm-frv/pgtable.h
  28. 1 0
      include/asm-generic/pgtable.h
  29. 2 0
      include/asm-i386/elf.h
  30. 3 0
      include/asm-i386/pgtable.h
  31. 1 0
      include/asm-ia64/pgtable.h
  32. 3 0
      include/asm-m32r/pgtable.h
  33. 2 0
      include/asm-mips/elf.h
  34. 3 0
      include/asm-mips/pgtable.h
  35. 2 1
      include/asm-parisc/pgtable.h
  36. 2 0
      include/asm-powerpc/elf.h
  37. 1 0
      include/asm-ppc/pgtable.h
  38. 1 0
      include/asm-ppc64/pgtable.h
  39. 1 0
      include/asm-s390/elf.h
  40. 1 0
      include/asm-s390/pgtable.h
  41. 1 0
      include/asm-sh/elf.h
  42. 2 0
      include/asm-sh/pgtable.h
  43. 2 0
      include/asm-sh64/pgtable.h
  44. 2 0
      include/asm-x86_64/elf.h
  45. 2 0
      include/asm-x86_64/pgtable.h
  46. 2 0
      include/asm-xtensa/elf.h
  47. 3 0
      include/asm-xtensa/pgtable.h
  48. 1 0
      include/linux/irq.h
  49. 3 0
      include/linux/memory.h
  50. 2 0
      include/linux/sem.h
  51. 1 0
      include/linux/wait.h
  52. 1 0
      kernel/module.c

+ 1 - 0
arch/arm/mach-aaec2000/clock.c

@@ -14,6 +14,7 @@
 #include <linux/list.h>
 #include <linux/list.h>
 #include <linux/errno.h>
 #include <linux/errno.h>
 #include <linux/err.h>
 #include <linux/err.h>
+#include <linux/string.h>
 
 
 #include <asm/semaphore.h>
 #include <asm/semaphore.h>
 #include <asm/hardware/clock.h>
 #include <asm/hardware/clock.h>

+ 1 - 0
arch/arm/mach-epxa10db/mm.c

@@ -25,6 +25,7 @@
 #include <asm/hardware.h>
 #include <asm/hardware.h>
 #include <asm/io.h>
 #include <asm/io.h>
 #include <asm/sizes.h>
 #include <asm/sizes.h>
+#include <asm/page.h>
  
  
 #include <asm/mach/map.h>
 #include <asm/mach/map.h>
 
 

+ 1 - 0
arch/arm/mach-pxa/corgi_lcd.c

@@ -19,6 +19,7 @@
 #include <linux/kernel.h>
 #include <linux/kernel.h>
 #include <linux/platform_device.h>
 #include <linux/platform_device.h>
 #include <linux/module.h>
 #include <linux/module.h>
+#include <linux/string.h>
 #include <asm/arch/akita.h>
 #include <asm/arch/akita.h>
 #include <asm/arch/corgi.h>
 #include <asm/arch/corgi.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/hardware.h>

+ 1 - 0
arch/ppc/syslib/ppc_sys.c

@@ -14,6 +14,7 @@
  * option) any later version.
  * option) any later version.
  */
  */
 
 
+#include <linux/string.h>
 #include <asm/ppc_sys.h>
 #include <asm/ppc_sys.h>
 
 
 int (*ppc_sys_device_fixup) (struct platform_device * pdev);
 int (*ppc_sys_device_fixup) (struct platform_device * pdev);

+ 1 - 0
drivers/base/power/sysfs.c

@@ -3,6 +3,7 @@
  */
  */
 
 
 #include <linux/device.h>
 #include <linux/device.h>
+#include <linux/string.h>
 #include "power.h"
 #include "power.h"
 
 
 
 

+ 1 - 0
drivers/char/agp/amd64-agp.c

@@ -13,6 +13,7 @@
 #include <linux/pci.h>
 #include <linux/pci.h>
 #include <linux/init.h>
 #include <linux/init.h>
 #include <linux/agp_backend.h>
 #include <linux/agp_backend.h>
+#include <linux/mmzone.h>
 #include <asm/page.h>		/* PAGE_SIZE */
 #include <asm/page.h>		/* PAGE_SIZE */
 #include "agp.h"
 #include "agp.h"
 
 

+ 1 - 0
drivers/hwmon/hwmon.c

@@ -16,6 +16,7 @@
 #include <linux/kdev_t.h>
 #include <linux/kdev_t.h>
 #include <linux/idr.h>
 #include <linux/idr.h>
 #include <linux/hwmon.h>
 #include <linux/hwmon.h>
+#include <linux/gfp.h>
 
 
 #define HWMON_ID_PREFIX "hwmon"
 #define HWMON_ID_PREFIX "hwmon"
 #define HWMON_ID_FORMAT HWMON_ID_PREFIX "%d"
 #define HWMON_ID_FORMAT HWMON_ID_PREFIX "%d"

+ 3 - 0
drivers/infiniband/core/agent.c

@@ -37,6 +37,9 @@
  * $Id: agent.c 1389 2004-12-27 22:56:47Z roland $
  * $Id: agent.c 1389 2004-12-27 22:56:47Z roland $
  */
  */
 
 
+#include <linux/slab.h>
+#include <linux/string.h>
+
 #include "agent.h"
 #include "agent.h"
 #include "smi.h"
 #include "smi.h"
 
 

+ 2 - 0
drivers/infiniband/core/packer.c

@@ -33,6 +33,8 @@
  * $Id: packer.c 1349 2004-12-16 21:09:43Z roland $
  * $Id: packer.c 1349 2004-12-16 21:09:43Z roland $
  */
  */
 
 
+#include <linux/string.h>
+
 #include <rdma/ib_pack.h>
 #include <rdma/ib_pack.h>
 
 
 static u64 value_read(int offset, int size, void *structure)
 static u64 value_read(int offset, int size, void *structure)

+ 3 - 0
drivers/infiniband/core/sysfs.c

@@ -36,6 +36,9 @@
 
 
 #include "core_priv.h"
 #include "core_priv.h"
 
 
+#include <linux/slab.h>
+#include <linux/string.h>
+
 #include <rdma/ib_mad.h>
 #include <rdma/ib_mad.h>
 
 
 struct ib_port {
 struct ib_port {

+ 1 - 0
drivers/infiniband/core/ud_header.c

@@ -34,6 +34,7 @@
  */
  */
 
 
 #include <linux/errno.h>
 #include <linux/errno.h>
+#include <linux/string.h>
 
 
 #include <rdma/ib_pack.h>
 #include <rdma/ib_pack.h>
 
 

+ 1 - 0
drivers/infiniband/core/verbs.c

@@ -40,6 +40,7 @@
 
 
 #include <linux/errno.h>
 #include <linux/errno.h>
 #include <linux/err.h>
 #include <linux/err.h>
+#include <linux/string.h>
 
 
 #include <rdma/ib_verbs.h>
 #include <rdma/ib_verbs.h>
 #include <rdma/ib_cache.h>
 #include <rdma/ib_cache.h>

+ 3 - 0
drivers/infiniband/hw/mthca/mthca_catas.c

@@ -32,6 +32,9 @@
  * $Id$
  * $Id$
  */
  */
 
 
+#include <linux/jiffies.h>
+#include <linux/timer.h>
+
 #include "mthca_dev.h"
 #include "mthca_dev.h"
 
 
 enum {
 enum {

+ 3 - 0
drivers/infiniband/hw/mthca/mthca_srq.c

@@ -32,6 +32,9 @@
  * $Id: mthca_srq.c 3047 2005-08-10 03:59:35Z roland $
  * $Id: mthca_srq.c 3047 2005-08-10 03:59:35Z roland $
  */
  */
 
 
+#include <linux/slab.h>
+#include <linux/string.h>
+
 #include "mthca_dev.h"
 #include "mthca_dev.h"
 #include "mthca_cmd.h"
 #include "mthca_cmd.h"
 #include "mthca_memfree.h"
 #include "mthca_memfree.h"

+ 1 - 0
drivers/media/dvb/frontends/cx24110.c

@@ -27,6 +27,7 @@
 #include <linux/module.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
 #include <linux/moduleparam.h>
 #include <linux/init.h>
 #include <linux/init.h>
+#include <linux/jiffies.h>
 
 
 #include "dvb_frontend.h"
 #include "dvb_frontend.h"
 #include "cx24110.h"
 #include "cx24110.h"

+ 1 - 0
drivers/message/i2o/exec-osm.c

@@ -33,6 +33,7 @@
 #include <linux/workqueue.h>
 #include <linux/workqueue.h>
 #include <linux/string.h>
 #include <linux/string.h>
 #include <linux/slab.h>
 #include <linux/slab.h>
+#include <linux/sched.h>   /* wait_event_interruptible_timeout() needs this */
 #include <asm/param.h>		/* HZ */
 #include <asm/param.h>		/* HZ */
 #include "core.h"
 #include "core.h"
 
 

+ 2 - 0
drivers/mfd/mcp-core.c

@@ -15,6 +15,8 @@
 #include <linux/errno.h>
 #include <linux/errno.h>
 #include <linux/smp.h>
 #include <linux/smp.h>
 #include <linux/device.h>
 #include <linux/device.h>
+#include <linux/slab.h>
+#include <linux/string.h>
 
 
 #include <asm/dma.h>
 #include <asm/dma.h>
 #include <asm/system.h>
 #include <asm/system.h>

+ 1 - 0
drivers/pci/hotplug/pciehprm_nonacpi.c

@@ -31,6 +31,7 @@
 #include <linux/module.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/kernel.h>
 #include <linux/types.h>
 #include <linux/types.h>
+#include <linux/sched.h>
 #include <linux/pci.h>
 #include <linux/pci.h>
 #include <linux/init.h>
 #include <linux/init.h>
 #include <linux/slab.h>
 #include <linux/slab.h>

+ 1 - 0
drivers/pci/pci-driver.c

@@ -10,6 +10,7 @@
 #include <linux/mempolicy.h>
 #include <linux/mempolicy.h>
 #include <linux/string.h>
 #include <linux/string.h>
 #include <linux/slab.h>
 #include <linux/slab.h>
+#include <linux/sched.h>
 #include "pci.h"
 #include "pci.h"
 
 
 /*
 /*

+ 2 - 0
drivers/scsi/atari_dma_emul.c

@@ -19,6 +19,8 @@
  * this code.
  * this code.
  */
  */
 
 
+#include <linux/compiler.h>
+#include <asm/thread_info.h>
 #include <asm/uaccess.h>
 #include <asm/uaccess.h>
 
 
 #define hades_dma_ctrl		(*(unsigned char *) 0xffff8717)
 #define hades_dma_ctrl		(*(unsigned char *) 0xffff8717)

+ 2 - 0
drivers/scsi/raid_class.c

@@ -4,6 +4,8 @@
 #include <linux/init.h>
 #include <linux/init.h>
 #include <linux/module.h>
 #include <linux/module.h>
 #include <linux/list.h>
 #include <linux/list.h>
+#include <linux/slab.h>
+#include <linux/string.h>
 #include <linux/raid_class.h>
 #include <linux/raid_class.h>
 #include <scsi/scsi_device.h>
 #include <scsi/scsi_device.h>
 #include <scsi/scsi_host.h>
 #include <scsi/scsi_host.h>

+ 2 - 0
drivers/scsi/scsi_transport_sas.c

@@ -26,6 +26,8 @@
 #include <linux/init.h>
 #include <linux/init.h>
 #include <linux/module.h>
 #include <linux/module.h>
 #include <linux/err.h>
 #include <linux/err.h>
+#include <linux/slab.h>
+#include <linux/string.h>
 
 
 #include <scsi/scsi_device.h>
 #include <scsi/scsi_device.h>
 #include <scsi/scsi_host.h>
 #include <scsi/scsi_host.h>

+ 1 - 0
drivers/scsi/sym53c8xx_2/sym_hipd.c

@@ -39,6 +39,7 @@
  */
  */
 
 
 #include <linux/slab.h>
 #include <linux/slab.h>
+#include <asm/param.h>		/* for timeouts in units of HZ */
 
 
 #include "sym_glue.h"
 #include "sym_glue.h"
 #include "sym_nvram.h"
 #include "sym_nvram.h"

+ 1 - 0
fs/9p/error.c

@@ -33,6 +33,7 @@
 
 
 #include <linux/list.h>
 #include <linux/list.h>
 #include <linux/jhash.h>
 #include <linux/jhash.h>
+#include <linux/string.h>
 
 
 #include "debug.h"
 #include "debug.h"
 #include "error.h"
 #include "error.h"

+ 3 - 0
include/asm-alpha/pgtable.h

@@ -17,6 +17,9 @@
 #include <asm/processor.h>	/* For TASK_SIZE */
 #include <asm/processor.h>	/* For TASK_SIZE */
 #include <asm/machvec.h>
 #include <asm/machvec.h>
 
 
+struct mm_struct;
+struct vm_area_struct;
+
 /* Certain architectures need to do special things when PTEs
 /* Certain architectures need to do special things when PTEs
  * within a page table are directly modified.  Thus, the following
  * within a page table are directly modified.  Thus, the following
  * hook is made available.
  * hook is made available.

+ 2 - 0
include/asm-cris/processor.h

@@ -16,6 +16,8 @@
 #include <asm/ptrace.h>
 #include <asm/ptrace.h>
 #include <asm/arch/processor.h>
 #include <asm/arch/processor.h>
 
 
+struct task_struct;
+
 /* This decides where the kernel will search for a free chunk of vm
 /* This decides where the kernel will search for a free chunk of vm
  * space during mmap's.
  * space during mmap's.
  */
  */

+ 2 - 0
include/asm-frv/pgtable.h

@@ -26,6 +26,8 @@
 #include <linux/slab.h>
 #include <linux/slab.h>
 #include <linux/list.h>
 #include <linux/list.h>
 #include <linux/spinlock.h>
 #include <linux/spinlock.h>
+struct mm_struct;
+struct vm_area_struct;
 #endif
 #endif
 
 
 #ifndef __ASSEMBLY__
 #ifndef __ASSEMBLY__

+ 1 - 0
include/asm-generic/pgtable.h

@@ -128,6 +128,7 @@ do {									\
 #endif
 #endif
 
 
 #ifndef __HAVE_ARCH_PTEP_SET_WRPROTECT
 #ifndef __HAVE_ARCH_PTEP_SET_WRPROTECT
+struct mm_struct;
 static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long address, pte_t *ptep)
 static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long address, pte_t *ptep)
 {
 {
 	pte_t old_pte = *ptep;
 	pte_t old_pte = *ptep;

+ 2 - 0
include/asm-i386/elf.h

@@ -119,6 +119,8 @@ typedef struct user_fxsr_struct elf_fpxregset_t;
  */
  */
 #define elf_read_implies_exec(ex, executable_stack)	(executable_stack != EXSTACK_DISABLE_X)
 #define elf_read_implies_exec(ex, executable_stack)	(executable_stack != EXSTACK_DISABLE_X)
 
 
+struct task_struct;
+
 extern int dump_task_regs (struct task_struct *, elf_gregset_t *);
 extern int dump_task_regs (struct task_struct *, elf_gregset_t *);
 extern int dump_task_fpu (struct task_struct *, elf_fpregset_t *);
 extern int dump_task_fpu (struct task_struct *, elf_fpregset_t *);
 extern int dump_task_extended_fpu (struct task_struct *, struct user_fxsr_struct *);
 extern int dump_task_extended_fpu (struct task_struct *, struct user_fxsr_struct *);

+ 3 - 0
include/asm-i386/pgtable.h

@@ -25,6 +25,9 @@
 #include <linux/list.h>
 #include <linux/list.h>
 #include <linux/spinlock.h>
 #include <linux/spinlock.h>
 
 
+struct mm_struct;
+struct vm_area_struct;
+
 /*
 /*
  * ZERO_PAGE is a global shared page that is always zero: used
  * ZERO_PAGE is a global shared page that is always zero: used
  * for zero-mapped memory areas etc..
  * for zero-mapped memory areas etc..

+ 1 - 0
include/asm-ia64/pgtable.h

@@ -127,6 +127,7 @@
 
 
 # ifndef __ASSEMBLY__
 # ifndef __ASSEMBLY__
 
 
+#include <linux/sched.h>	/* for mm_struct */
 #include <asm/bitops.h>
 #include <asm/bitops.h>
 #include <asm/cacheflush.h>
 #include <asm/cacheflush.h>
 #include <asm/mmu_context.h>
 #include <asm/mmu_context.h>

+ 3 - 0
include/asm-m32r/pgtable.h

@@ -27,6 +27,9 @@
 #include <asm/bitops.h>
 #include <asm/bitops.h>
 #include <asm/page.h>
 #include <asm/page.h>
 
 
+struct mm_struct;
+struct vm_area_struct;
+
 extern pgd_t swapper_pg_dir[1024];
 extern pgd_t swapper_pg_dir[1024];
 extern void paging_init(void);
 extern void paging_init(void);
 
 

+ 2 - 0
include/asm-mips/elf.h

@@ -275,6 +275,8 @@ do {									\
 
 
 #endif /* CONFIG_64BIT */
 #endif /* CONFIG_64BIT */
 
 
+struct task_struct;
+
 extern void dump_regs(elf_greg_t *, struct pt_regs *regs);
 extern void dump_regs(elf_greg_t *, struct pt_regs *regs);
 extern int dump_task_regs (struct task_struct *, elf_gregset_t *);
 extern int dump_task_regs (struct task_struct *, elf_gregset_t *);
 extern int dump_task_fpu(struct task_struct *, elf_fpregset_t *);
 extern int dump_task_fpu(struct task_struct *, elf_fpregset_t *);

+ 3 - 0
include/asm-mips/pgtable.h

@@ -19,6 +19,9 @@
 #include <asm/io.h>
 #include <asm/io.h>
 #include <asm/pgtable-bits.h>
 #include <asm/pgtable-bits.h>
 
 
+struct mm_struct;
+struct vm_area_struct;
+
 #define PAGE_NONE	__pgprot(_PAGE_PRESENT | _CACHE_CACHABLE_NONCOHERENT)
 #define PAGE_NONE	__pgprot(_PAGE_PRESENT | _CACHE_CACHABLE_NONCOHERENT)
 #define PAGE_SHARED	__pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \
 #define PAGE_SHARED	__pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \
 			PAGE_CACHABLE_DEFAULT)
 			PAGE_CACHABLE_DEFAULT)

+ 2 - 1
include/asm-parisc/pgtable.h

@@ -12,6 +12,7 @@
  */
  */
 
 
 #include <linux/spinlock.h>
 #include <linux/spinlock.h>
+#include <linux/mm.h>		/* for vm_area_struct */
 #include <asm/processor.h>
 #include <asm/processor.h>
 #include <asm/cache.h>
 #include <asm/cache.h>
 #include <asm/bitops.h>
 #include <asm/bitops.h>
@@ -418,7 +419,6 @@ extern void paging_init (void);
 
 
 #define PG_dcache_dirty         PG_arch_1
 #define PG_dcache_dirty         PG_arch_1
 
 
-struct vm_area_struct; /* forward declaration (include/linux/mm.h) */
 extern void update_mmu_cache(struct vm_area_struct *, unsigned long, pte_t);
 extern void update_mmu_cache(struct vm_area_struct *, unsigned long, pte_t);
 
 
 /* Encode and de-code a swap entry */
 /* Encode and de-code a swap entry */
@@ -464,6 +464,7 @@ static inline int ptep_test_and_clear_dirty(struct vm_area_struct *vma, unsigned
 
 
 extern spinlock_t pa_dbit_lock;
 extern spinlock_t pa_dbit_lock;
 
 
+struct mm_struct;
 static inline pte_t ptep_get_and_clear(struct mm_struct *mm, unsigned long addr, pte_t *ptep)
 static inline pte_t ptep_get_and_clear(struct mm_struct *mm, unsigned long addr, pte_t *ptep)
 {
 {
 	pte_t old_pte;
 	pte_t old_pte;

+ 2 - 0
include/asm-powerpc/elf.h

@@ -1,11 +1,13 @@
 #ifndef _ASM_POWERPC_ELF_H
 #ifndef _ASM_POWERPC_ELF_H
 #define _ASM_POWERPC_ELF_H
 #define _ASM_POWERPC_ELF_H
 
 
+#include <linux/sched.h>	/* for task_struct */
 #include <asm/types.h>
 #include <asm/types.h>
 #include <asm/ptrace.h>
 #include <asm/ptrace.h>
 #include <asm/cputable.h>
 #include <asm/cputable.h>
 #include <asm/auxvec.h>
 #include <asm/auxvec.h>
 #include <asm/page.h>
 #include <asm/page.h>
+#include <asm/string.h>
 
 
 /* PowerPC relocations defined by the ABIs */
 /* PowerPC relocations defined by the ABIs */
 #define R_PPC_NONE		0
 #define R_PPC_NONE		0

+ 1 - 0
include/asm-ppc/pgtable.h

@@ -12,6 +12,7 @@
 #include <asm/processor.h>		/* For TASK_SIZE */
 #include <asm/processor.h>		/* For TASK_SIZE */
 #include <asm/mmu.h>
 #include <asm/mmu.h>
 #include <asm/page.h>
 #include <asm/page.h>
+struct mm_struct;
 
 
 extern unsigned long va_to_phys(unsigned long address);
 extern unsigned long va_to_phys(unsigned long address);
 extern pte_t *va_to_pte(unsigned long address);
 extern pte_t *va_to_pte(unsigned long address);

+ 1 - 0
include/asm-ppc64/pgtable.h

@@ -13,6 +13,7 @@
 #include <asm/mmu.h>
 #include <asm/mmu.h>
 #include <asm/page.h>
 #include <asm/page.h>
 #include <asm/tlbflush.h>
 #include <asm/tlbflush.h>
+struct mm_struct;
 #endif /* __ASSEMBLY__ */
 #endif /* __ASSEMBLY__ */
 
 
 #ifdef CONFIG_PPC_64K_PAGES
 #ifdef CONFIG_PPC_64K_PAGES

+ 1 - 0
include/asm-s390/elf.h

@@ -96,6 +96,7 @@
  * ELF register definitions..
  * ELF register definitions..
  */
  */
 
 
+#include <linux/sched.h>	/* for task_struct */
 #include <asm/ptrace.h>
 #include <asm/ptrace.h>
 #include <asm/user.h>
 #include <asm/user.h>
 #include <asm/system.h>		/* for save_access_regs */
 #include <asm/system.h>		/* for save_access_regs */

+ 1 - 0
include/asm-s390/pgtable.h

@@ -36,6 +36,7 @@
 #include <linux/threads.h>
 #include <linux/threads.h>
 
 
 struct vm_area_struct; /* forward declaration (include/linux/mm.h) */
 struct vm_area_struct; /* forward declaration (include/linux/mm.h) */
+struct mm_struct;
 
 
 extern pgd_t swapper_pg_dir[] __attribute__ ((aligned (4096)));
 extern pgd_t swapper_pg_dir[] __attribute__ ((aligned (4096)));
 extern void paging_init(void);
 extern void paging_init(void);

+ 1 - 0
include/asm-sh/elf.h

@@ -111,6 +111,7 @@ typedef struct user_fpu_struct elf_fpregset_t;
 
 
 #ifdef __KERNEL__
 #ifdef __KERNEL__
 #define SET_PERSONALITY(ex, ibcs2) set_personality(PER_LINUX_32BIT)
 #define SET_PERSONALITY(ex, ibcs2) set_personality(PER_LINUX_32BIT)
+struct task_struct;
 extern int dump_task_regs (struct task_struct *, elf_gregset_t *);
 extern int dump_task_regs (struct task_struct *, elf_gregset_t *);
 extern int dump_task_fpu (struct task_struct *, elf_fpregset_t *);
 extern int dump_task_fpu (struct task_struct *, elf_fpregset_t *);
 
 

+ 2 - 0
include/asm-sh/pgtable.h

@@ -284,6 +284,8 @@ typedef pte_t *pte_addr_t;
 #define GET_IOSPACE(pfn)		0
 #define GET_IOSPACE(pfn)		0
 #define GET_PFN(pfn)			(pfn)
 #define GET_PFN(pfn)			(pfn)
 
 
+struct mm_struct;
+
 /*
 /*
  * No page table caches to initialise
  * No page table caches to initialise
  */
  */

+ 2 - 0
include/asm-sh64/pgtable.h

@@ -24,6 +24,8 @@
 #include <linux/threads.h>
 #include <linux/threads.h>
 #include <linux/config.h>
 #include <linux/config.h>
 
 
+struct vm_area_struct;
+
 extern void paging_init(void);
 extern void paging_init(void);
 
 
 /* We provide our own get_unmapped_area to avoid cache synonym issue */
 /* We provide our own get_unmapped_area to avoid cache synonym issue */

+ 2 - 0
include/asm-x86_64/elf.h

@@ -149,6 +149,8 @@ extern void set_personality_64bit(void);
  */
  */
 #define elf_read_implies_exec(ex, executable_stack)	(executable_stack != EXSTACK_DISABLE_X)
 #define elf_read_implies_exec(ex, executable_stack)	(executable_stack != EXSTACK_DISABLE_X)
 
 
+struct task_struct;
+
 extern int dump_task_regs (struct task_struct *, elf_gregset_t *);
 extern int dump_task_regs (struct task_struct *, elf_gregset_t *);
 extern int dump_task_fpu (struct task_struct *, elf_fpregset_t *);
 extern int dump_task_fpu (struct task_struct *, elf_fpregset_t *);
 
 

+ 2 - 0
include/asm-x86_64/pgtable.h

@@ -105,6 +105,8 @@ static inline void pgd_clear (pgd_t * pgd)
 
 
 #define ptep_get_and_clear(mm,addr,xp)	__pte(xchg(&(xp)->pte, 0))
 #define ptep_get_and_clear(mm,addr,xp)	__pte(xchg(&(xp)->pte, 0))
 
 
+struct mm_struct;
+
 static inline pte_t ptep_get_and_clear_full(struct mm_struct *mm, unsigned long addr, pte_t *ptep, int full)
 static inline pte_t ptep_get_and_clear_full(struct mm_struct *mm, unsigned long addr, pte_t *ptep, int full)
 {
 {
 	pte_t pte;
 	pte_t pte;

+ 2 - 0
include/asm-xtensa/elf.h

@@ -209,6 +209,8 @@ extern void xtensa_elf_core_copy_regs (xtensa_gregset_t *, struct pt_regs *);
 
 
 #define SET_PERSONALITY(ex, ibcs2) set_personality(PER_LINUX_32BIT)
 #define SET_PERSONALITY(ex, ibcs2) set_personality(PER_LINUX_32BIT)
 
 
+struct task_struct;
+
 extern void do_copy_regs (xtensa_gregset_t*, struct pt_regs*,
 extern void do_copy_regs (xtensa_gregset_t*, struct pt_regs*,
 			  struct task_struct*);
 			  struct task_struct*);
 extern void do_restore_regs (xtensa_gregset_t*, struct pt_regs*,
 extern void do_restore_regs (xtensa_gregset_t*, struct pt_regs*,

+ 3 - 0
include/asm-xtensa/pgtable.h

@@ -278,6 +278,8 @@ static inline void update_pte(pte_t *ptep, pte_t pteval)
 #endif
 #endif
 }
 }
 
 
+struct mm_struct;
+
 static inline void
 static inline void
 set_pte_at(struct mm_struct *mm, unsigned long addr, pte_t *ptep, pte_t pteval)
 set_pte_at(struct mm_struct *mm, unsigned long addr, pte_t *ptep, pte_t pteval)
 {
 {
@@ -294,6 +296,7 @@ set_pmd(pmd_t *pmdp, pmd_t pmdval)
 #endif
 #endif
 }
 }
 
 
+struct vm_area_struct;
 
 
 static inline int
 static inline int
 ptep_test_and_clear_young(struct vm_area_struct *vma, unsigned long addr,
 ptep_test_and_clear_young(struct vm_area_struct *vma, unsigned long addr,

+ 1 - 0
include/linux/irq.h

@@ -10,6 +10,7 @@
  */
  */
 
 
 #include <linux/config.h>
 #include <linux/config.h>
+#include <asm/smp.h>		/* cpu_online_map */
 
 
 #if !defined(CONFIG_ARCH_S390)
 #if !defined(CONFIG_ARCH_S390)
 
 

+ 3 - 0
include/linux/memory.h

@@ -54,6 +54,9 @@ struct memory_block {
  */
  */
 #define	MEM_MAPPING_INVALID	(1<<3)
 #define	MEM_MAPPING_INVALID	(1<<3)
 
 
+struct notifier_block;
+struct mem_section;
+
 #ifndef CONFIG_MEMORY_HOTPLUG
 #ifndef CONFIG_MEMORY_HOTPLUG
 static inline int memory_dev_init(void)
 static inline int memory_dev_init(void)
 {
 {

+ 2 - 0
include/linux/sem.h

@@ -79,6 +79,8 @@ struct  seminfo {
 
 
 #ifdef __KERNEL__
 #ifdef __KERNEL__
 
 
+struct task_struct;
+
 /* One semaphore structure for each semaphore in the system. */
 /* One semaphore structure for each semaphore in the system. */
 struct sem {
 struct sem {
 	int	semval;		/* current value */
 	int	semval;		/* current value */

+ 1 - 0
include/linux/wait.h

@@ -54,6 +54,7 @@ struct __wait_queue_head {
 };
 };
 typedef struct __wait_queue_head wait_queue_head_t;
 typedef struct __wait_queue_head wait_queue_head_t;
 
 
+struct task_struct;
 
 
 /*
 /*
  * Macros for declaration and initialisaton of the datatypes
  * Macros for declaration and initialisaton of the datatypes

+ 1 - 0
kernel/module.c

@@ -37,6 +37,7 @@
 #include <linux/stop_machine.h>
 #include <linux/stop_machine.h>
 #include <linux/device.h>
 #include <linux/device.h>
 #include <linux/string.h>
 #include <linux/string.h>
+#include <linux/sched.h>
 #include <asm/uaccess.h>
 #include <asm/uaccess.h>
 #include <asm/semaphore.h>
 #include <asm/semaphore.h>
 #include <asm/cacheflush.h>
 #include <asm/cacheflush.h>