x86/mm: further cleanups of fault.c's include file section
Impact: cleanup Eliminate more than 20 unnecessary #include lines in fault.c Also fix include file dependency bug in asm/traps.h. (this was masked before, by implicit inclusion) Signed-off-by: Ingo Molnar <mingo@elte.hu> LKML-Reference: <tip-56aea8468746e673a4bf50b6a13d97b2d1cbe1e8@git.kernel.org> Acked-by: H. Peter Anvin <hpa@linux.intel.com>
This commit is contained in:
Родитель
9f4f25c86f
Коммит
a2bcd4731f
|
@ -2,6 +2,7 @@
|
||||||
#define _ASM_X86_TRAPS_H
|
#define _ASM_X86_TRAPS_H
|
||||||
|
|
||||||
#include <asm/debugreg.h>
|
#include <asm/debugreg.h>
|
||||||
|
#include <asm/siginfo.h> /* TRAP_TRACE, ... */
|
||||||
|
|
||||||
#ifdef CONFIG_X86_32
|
#ifdef CONFIG_X86_32
|
||||||
#define dotraplinkage
|
#define dotraplinkage
|
||||||
|
|
|
@ -3,40 +3,16 @@
|
||||||
* Copyright (C) 2001, 2002 Andi Kleen, SuSE Labs.
|
* Copyright (C) 2001, 2002 Andi Kleen, SuSE Labs.
|
||||||
* Copyright (C) 2008-2009, Red Hat Inc., Ingo Molnar
|
* Copyright (C) 2008-2009, Red Hat Inc., Ingo Molnar
|
||||||
*/
|
*/
|
||||||
#include <linux/interrupt.h>
|
#include <linux/magic.h> /* STACK_END_MAGIC */
|
||||||
#include <linux/mmiotrace.h>
|
#include <linux/sched.h> /* test_thread_flag(), ... */
|
||||||
#include <linux/bootmem.h>
|
#include <linux/kdebug.h> /* oops_begin/end, ... */
|
||||||
#include <linux/compiler.h>
|
#include <linux/module.h> /* search_exception_table */
|
||||||
#include <linux/highmem.h>
|
#include <linux/bootmem.h> /* max_low_pfn */
|
||||||
#include <linux/kprobes.h>
|
#include <linux/kprobes.h> /* __kprobes, ... */
|
||||||
#include <linux/uaccess.h>
|
#include <linux/mmiotrace.h> /* kmmio_handler, ... */
|
||||||
#include <linux/vmalloc.h>
|
|
||||||
#include <linux/vt_kern.h>
|
|
||||||
#include <linux/signal.h>
|
|
||||||
#include <linux/kernel.h>
|
|
||||||
#include <linux/ptrace.h>
|
|
||||||
#include <linux/string.h>
|
|
||||||
#include <linux/module.h>
|
|
||||||
#include <linux/kdebug.h>
|
|
||||||
#include <linux/errno.h>
|
|
||||||
#include <linux/magic.h>
|
|
||||||
#include <linux/sched.h>
|
|
||||||
#include <linux/types.h>
|
|
||||||
#include <linux/init.h>
|
|
||||||
#include <linux/mman.h>
|
|
||||||
#include <linux/tty.h>
|
|
||||||
#include <linux/smp.h>
|
|
||||||
#include <linux/mm.h>
|
|
||||||
|
|
||||||
#include <asm-generic/sections.h>
|
#include <asm/traps.h> /* dotraplinkage, ... */
|
||||||
|
#include <asm/pgalloc.h> /* pgd_*(), ... */
|
||||||
#include <asm/tlbflush.h>
|
|
||||||
#include <asm/pgalloc.h>
|
|
||||||
#include <asm/segment.h>
|
|
||||||
#include <asm/system.h>
|
|
||||||
#include <asm/proto.h>
|
|
||||||
#include <asm/traps.h>
|
|
||||||
#include <asm/desc.h>
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Page fault error code bits:
|
* Page fault error code bits:
|
||||||
|
|
Загрузка…
Ссылка в новой задаче