Skip to content

Commit

Permalink
[PATCH] fix remaining missing includes
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tim Schmielau authored and Linus Torvalds committed Nov 7, 2005
1 parent 6fdcc21 commit 8c65b4a
Show file tree
Hide file tree
Showing 52 changed files with 89 additions and 1 deletion.
1 change: 1 addition & 0 deletions arch/arm/mach-aaec2000/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,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>
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-epxa10db/mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <asm/hardware.h>
#include <asm/io.h>
#include <asm/sizes.h>
#include <asm/page.h>

#include <asm/mach/map.h>

Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-pxa/corgi_lcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/module.h>
#include <linux/string.h>
#include <asm/arch/akita.h>
#include <asm/arch/corgi.h>
#include <asm/arch/hardware.h>
Expand Down
1 change: 1 addition & 0 deletions arch/ppc/syslib/ppc_sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* option) any later version.
*/

#include <linux/string.h>
#include <asm/ppc_sys.h>

int (*ppc_sys_device_fixup) (struct platform_device * pdev);
Expand Down
1 change: 1 addition & 0 deletions drivers/base/power/sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*/

#include <linux/device.h>
#include <linux/string.h>
#include "power.h"


Expand Down
1 change: 1 addition & 0 deletions drivers/char/agp/amd64-agp.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/agp_backend.h>
#include <linux/mmzone.h>
#include <asm/page.h> /* PAGE_SIZE */
#include "agp.h"

Expand Down
1 change: 1 addition & 0 deletions drivers/hwmon/hwmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <linux/kdev_t.h>
#include <linux/idr.h>
#include <linux/hwmon.h>
#include <linux/gfp.h>

#define HWMON_ID_PREFIX "hwmon"
#define HWMON_ID_FORMAT HWMON_ID_PREFIX "%d"
Expand Down
3 changes: 3 additions & 0 deletions drivers/infiniband/core/agent.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
* $Id: agent.c 1389 2004-12-27 22:56:47Z roland $
*/

#include <linux/slab.h>
#include <linux/string.h>

#include "agent.h"
#include "smi.h"

Expand Down
2 changes: 2 additions & 0 deletions drivers/infiniband/core/packer.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
* $Id: packer.c 1349 2004-12-16 21:09:43Z roland $
*/

#include <linux/string.h>

#include <rdma/ib_pack.h>

static u64 value_read(int offset, int size, void *structure)
Expand Down
3 changes: 3 additions & 0 deletions drivers/infiniband/core/sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@

#include "core_priv.h"

#include <linux/slab.h>
#include <linux/string.h>

#include <rdma/ib_mad.h>

struct ib_port {
Expand Down
1 change: 1 addition & 0 deletions drivers/infiniband/core/ud_header.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
*/

#include <linux/errno.h>
#include <linux/string.h>

#include <rdma/ib_pack.h>

Expand Down
1 change: 1 addition & 0 deletions drivers/infiniband/core/verbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@

#include <linux/errno.h>
#include <linux/err.h>
#include <linux/string.h>

#include <rdma/ib_verbs.h>
#include <rdma/ib_cache.h>
Expand Down
3 changes: 3 additions & 0 deletions drivers/infiniband/hw/mthca/mthca_catas.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
* $Id$
*/

#include <linux/jiffies.h>
#include <linux/timer.h>

#include "mthca_dev.h"

enum {
Expand Down
3 changes: 3 additions & 0 deletions drivers/infiniband/hw/mthca/mthca_srq.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
* $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_cmd.h"
#include "mthca_memfree.h"
Expand Down
1 change: 1 addition & 0 deletions drivers/media/dvb/frontends/cx24110.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/jiffies.h>

#include "dvb_frontend.h"
#include "cx24110.h"
Expand Down
1 change: 1 addition & 0 deletions drivers/message/i2o/exec-osm.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <linux/workqueue.h>
#include <linux/string.h>
#include <linux/slab.h>
#include <linux/sched.h> /* wait_event_interruptible_timeout() needs this */
#include <asm/param.h> /* HZ */
#include "core.h"

Expand Down
2 changes: 2 additions & 0 deletions drivers/mfd/mcp-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#include <linux/errno.h>
#include <linux/smp.h>
#include <linux/device.h>
#include <linux/slab.h>
#include <linux/string.h>

#include <asm/dma.h>
#include <asm/system.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/pci/hotplug/pciehprm_nonacpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/sched.h>
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/slab.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/pci/pci-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <linux/mempolicy.h>
#include <linux/string.h>
#include <linux/slab.h>
#include <linux/sched.h>
#include "pci.h"

/*
Expand Down
2 changes: 2 additions & 0 deletions drivers/scsi/atari_dma_emul.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* this code.
*/

#include <linux/compiler.h>
#include <asm/thread_info.h>
#include <asm/uaccess.h>

#define hades_dma_ctrl (*(unsigned char *) 0xffff8717)
Expand Down
2 changes: 2 additions & 0 deletions drivers/scsi/raid_class.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#include <linux/init.h>
#include <linux/module.h>
#include <linux/list.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/raid_class.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_host.h>
Expand Down
2 changes: 2 additions & 0 deletions drivers/scsi/scsi_transport_sas.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
#include <linux/init.h>
#include <linux/module.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/string.h>

#include <scsi/scsi_device.h>
#include <scsi/scsi_host.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/scsi/sym53c8xx_2/sym_hipd.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
*/

#include <linux/slab.h>
#include <asm/param.h> /* for timeouts in units of HZ */

#include "sym_glue.h"
#include "sym_nvram.h"
Expand Down
1 change: 1 addition & 0 deletions fs/9p/error.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

#include <linux/list.h>
#include <linux/jhash.h>
#include <linux/string.h>

#include "debug.h"
#include "error.h"
Expand Down
3 changes: 3 additions & 0 deletions include/asm-alpha/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
#include <asm/processor.h> /* For TASK_SIZE */
#include <asm/machvec.h>

struct mm_struct;
struct vm_area_struct;

/* Certain architectures need to do special things when PTEs
* within a page table are directly modified. Thus, the following
* hook is made available.
Expand Down
2 changes: 2 additions & 0 deletions include/asm-cris/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#include <asm/ptrace.h>
#include <asm/arch/processor.h>

struct task_struct;

/* This decides where the kernel will search for a free chunk of vm
* space during mmap's.
*/
Expand Down
2 changes: 2 additions & 0 deletions include/asm-frv/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
#include <linux/slab.h>
#include <linux/list.h>
#include <linux/spinlock.h>
struct mm_struct;
struct vm_area_struct;
#endif

#ifndef __ASSEMBLY__
Expand Down
1 change: 1 addition & 0 deletions include/asm-generic/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ do { \
#endif

#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)
{
pte_t old_pte = *ptep;
Expand Down
2 changes: 2 additions & 0 deletions include/asm-i386/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)

struct task_struct;

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_extended_fpu (struct task_struct *, struct user_fxsr_struct *);
Expand Down
3 changes: 3 additions & 0 deletions include/asm-i386/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
#include <linux/list.h>
#include <linux/spinlock.h>

struct mm_struct;
struct vm_area_struct;

/*
* ZERO_PAGE is a global shared page that is always zero: used
* for zero-mapped memory areas etc..
Expand Down
1 change: 1 addition & 0 deletions include/asm-ia64/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@

# ifndef __ASSEMBLY__

#include <linux/sched.h> /* for mm_struct */
#include <asm/bitops.h>
#include <asm/cacheflush.h>
#include <asm/mmu_context.h>
Expand Down
3 changes: 3 additions & 0 deletions include/asm-m32r/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
#include <asm/bitops.h>
#include <asm/page.h>

struct mm_struct;
struct vm_area_struct;

extern pgd_t swapper_pg_dir[1024];
extern void paging_init(void);

Expand Down
2 changes: 2 additions & 0 deletions include/asm-mips/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ do { \

#endif /* CONFIG_64BIT */

struct task_struct;

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_fpu(struct task_struct *, elf_fpregset_t *);
Expand Down
3 changes: 3 additions & 0 deletions include/asm-mips/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
#include <asm/io.h>
#include <asm/pgtable-bits.h>

struct mm_struct;
struct vm_area_struct;

#define PAGE_NONE __pgprot(_PAGE_PRESENT | _CACHE_CACHABLE_NONCOHERENT)
#define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \
PAGE_CACHABLE_DEFAULT)
Expand Down
3 changes: 2 additions & 1 deletion include/asm-parisc/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*/

#include <linux/spinlock.h>
#include <linux/mm.h> /* for vm_area_struct */
#include <asm/processor.h>
#include <asm/cache.h>
#include <asm/bitops.h>
Expand Down Expand Up @@ -418,7 +419,6 @@ extern void paging_init (void);

#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);

/* Encode and de-code a swap entry */
Expand Down Expand Up @@ -464,6 +464,7 @@ static inline int ptep_test_and_clear_dirty(struct vm_area_struct *vma, unsigned

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)
{
pte_t old_pte;
Expand Down
2 changes: 2 additions & 0 deletions include/asm-powerpc/elf.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#ifndef _ASM_POWERPC_ELF_H
#define _ASM_POWERPC_ELF_H

#include <linux/sched.h> /* for task_struct */
#include <asm/types.h>
#include <asm/ptrace.h>
#include <asm/cputable.h>
#include <asm/auxvec.h>
#include <asm/page.h>
#include <asm/string.h>

/* PowerPC relocations defined by the ABIs */
#define R_PPC_NONE 0
Expand Down
1 change: 1 addition & 0 deletions include/asm-ppc/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <asm/processor.h> /* For TASK_SIZE */
#include <asm/mmu.h>
#include <asm/page.h>
struct mm_struct;

extern unsigned long va_to_phys(unsigned long address);
extern pte_t *va_to_pte(unsigned long address);
Expand Down
1 change: 1 addition & 0 deletions include/asm-ppc64/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <asm/mmu.h>
#include <asm/page.h>
#include <asm/tlbflush.h>
struct mm_struct;
#endif /* __ASSEMBLY__ */

#ifdef CONFIG_PPC_64K_PAGES
Expand Down
1 change: 1 addition & 0 deletions include/asm-s390/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
* ELF register definitions..
*/

#include <linux/sched.h> /* for task_struct */
#include <asm/ptrace.h>
#include <asm/user.h>
#include <asm/system.h> /* for save_access_regs */
Expand Down
1 change: 1 addition & 0 deletions include/asm-s390/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include <linux/threads.h>

struct vm_area_struct; /* forward declaration (include/linux/mm.h) */
struct mm_struct;

extern pgd_t swapper_pg_dir[] __attribute__ ((aligned (4096)));
extern void paging_init(void);
Expand Down
1 change: 1 addition & 0 deletions include/asm-sh/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ typedef struct user_fpu_struct elf_fpregset_t;

#ifdef __KERNEL__
#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_fpu (struct task_struct *, elf_fpregset_t *);

Expand Down
2 changes: 2 additions & 0 deletions include/asm-sh/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@ typedef pte_t *pte_addr_t;
#define GET_IOSPACE(pfn) 0
#define GET_PFN(pfn) (pfn)

struct mm_struct;

/*
* No page table caches to initialise
*/
Expand Down
2 changes: 2 additions & 0 deletions include/asm-sh64/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
#include <linux/threads.h>
#include <linux/config.h>

struct vm_area_struct;

extern void paging_init(void);

/* We provide our own get_unmapped_area to avoid cache synonym issue */
Expand Down
Loading

0 comments on commit 8c65b4a

Please sign in to comment.