mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
[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>
This commit is contained in:
parent
6fdcc21622
commit
8c65b4a604
@ -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>
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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);
|
||||
|
@ -3,6 +3,7 @@
|
||||
*/
|
||||
|
||||
#include <linux/device.h>
|
||||
#include <linux/string.h>
|
||||
#include "power.h"
|
||||
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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)
|
||||
|
@ -36,6 +36,9 @@
|
||||
|
||||
#include "core_priv.h"
|
||||
|
||||
#include <linux/slab.h>
|
||||
#include <linux/string.h>
|
||||
|
||||
#include <rdma/ib_mad.h>
|
||||
|
||||
struct ib_port {
|
||||
|
@ -34,6 +34,7 @@
|
||||
*/
|
||||
|
||||
#include <linux/errno.h>
|
||||
#include <linux/string.h>
|
||||
|
||||
#include <rdma/ib_pack.h>
|
||||
|
||||
|
@ -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>
|
||||
|
@ -32,6 +32,9 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <linux/jiffies.h>
|
||||
#include <linux/timer.h>
|
||||
|
||||
#include "mthca_dev.h"
|
||||
|
||||
enum {
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -10,6 +10,7 @@
|
||||
#include <linux/mempolicy.h>
|
||||
#include <linux/string.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/sched.h>
|
||||
#include "pci.h"
|
||||
|
||||
/*
|
||||
|
@ -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)
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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"
|
||||
|
@ -33,6 +33,7 @@
|
||||
|
||||
#include <linux/list.h>
|
||||
#include <linux/jhash.h>
|
||||
#include <linux/string.h>
|
||||
|
||||
#include "debug.h"
|
||||
#include "error.h"
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
*/
|
||||
|
@ -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__
|
||||
|
@ -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;
|
||||
|
@ -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 *);
|
||||
|
@ -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..
|
||||
|
@ -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>
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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 *);
|
||||
|
@ -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)
|
||||
|
@ -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>
|
||||
@ -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 */
|
||||
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
@ -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 */
|
||||
|
@ -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);
|
||||
|
@ -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 *);
|
||||
|
||||
|
@ -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
|
||||
*/
|
||||
|
@ -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 */
|
||||
|
@ -149,6 +149,8 @@ extern void set_personality_64bit(void);
|
||||
*/
|
||||
#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 *);
|
||||
|
||||
|
@ -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))
|
||||
|
||||
struct mm_struct;
|
||||
|
||||
static inline pte_t ptep_get_and_clear_full(struct mm_struct *mm, unsigned long addr, pte_t *ptep, int full)
|
||||
{
|
||||
pte_t pte;
|
||||
|
@ -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)
|
||||
|
||||
struct task_struct;
|
||||
|
||||
extern void do_copy_regs (xtensa_gregset_t*, struct pt_regs*,
|
||||
struct task_struct*);
|
||||
extern void do_restore_regs (xtensa_gregset_t*, struct pt_regs*,
|
||||
|
@ -278,6 +278,8 @@ static inline void update_pte(pte_t *ptep, pte_t pteval)
|
||||
#endif
|
||||
}
|
||||
|
||||
struct mm_struct;
|
||||
|
||||
static inline void
|
||||
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
|
||||
}
|
||||
|
||||
struct vm_area_struct;
|
||||
|
||||
static inline int
|
||||
ptep_test_and_clear_young(struct vm_area_struct *vma, unsigned long addr,
|
||||
|
@ -10,6 +10,7 @@
|
||||
*/
|
||||
|
||||
#include <linux/config.h>
|
||||
#include <asm/smp.h> /* cpu_online_map */
|
||||
|
||||
#if !defined(CONFIG_ARCH_S390)
|
||||
|
||||
|
@ -54,6 +54,9 @@ struct memory_block {
|
||||
*/
|
||||
#define MEM_MAPPING_INVALID (1<<3)
|
||||
|
||||
struct notifier_block;
|
||||
struct mem_section;
|
||||
|
||||
#ifndef CONFIG_MEMORY_HOTPLUG
|
||||
static inline int memory_dev_init(void)
|
||||
{
|
||||
|
@ -79,6 +79,8 @@ struct seminfo {
|
||||
|
||||
#ifdef __KERNEL__
|
||||
|
||||
struct task_struct;
|
||||
|
||||
/* One semaphore structure for each semaphore in the system. */
|
||||
struct sem {
|
||||
int semval; /* current value */
|
||||
|
@ -54,6 +54,7 @@ struct __wait_queue_head {
|
||||
};
|
||||
typedef struct __wait_queue_head wait_queue_head_t;
|
||||
|
||||
struct task_struct;
|
||||
|
||||
/*
|
||||
* Macros for declaration and initialisaton of the datatypes
|
||||
|
@ -37,6 +37,7 @@
|
||||
#include <linux/stop_machine.h>
|
||||
#include <linux/device.h>
|
||||
#include <linux/string.h>
|
||||
#include <linux/sched.h>
|
||||
#include <asm/uaccess.h>
|
||||
#include <asm/semaphore.h>
|
||||
#include <asm/cacheflush.h>
|
||||
|
Loading…
Reference in New Issue
Block a user