Skip to contentSkip to conversation

x86/mm: further cleanups of fault.c's include file section

tip:x86/mm Ingo Molnar 1 participant 2 messages Mar 29, 2009 – Mar 30, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw
Commit-ID:  56aea8468746e673a4bf50b6a13d97b2d1cbe1e8
Gitweb:     http://git.kernel.org/tip/56aea8468746e673a4bf50b6a13d97b2d1cbe1e8
Author:     Ingo Molnar <[email protected]>
AuthorDate: Sun, 29 Mar 2009 23:47:48 +0200
Committer:  Ingo Molnar <[email protected]>
CommitDate: Mon, 30 Mar 2009 00:10:22 +0200

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)

Cc Linus Torvalds <[email protected]>

LKML-Reference: <new-submission>

---
 arch/x86/include/asm/traps.h |    1 +
 arch/x86/mm/fault.c          |   41 ++++++++---------------------------------
 2 files changed, 9 insertions(+), 33 deletions(-)
arch/x86/include/asm/traps.h +1 -0
index 0d53425..37fb07a 100644
@@ -2,6 +2,7 @@
 #define _ASM_X86_TRAPS_H
 
 #include <asm/debugreg.h>
+#include <asm/siginfo.h>			/* TRAP_TRACE, ... */
 
 #ifdef CONFIG_X86_32
 #define dotraplinkage
arch/x86/mm/fault.c +9 -34

49 lines not on this page · raw message

#1 lore raw
Commit-ID:  a2bcd4731f77cb77ae4b5e4a3d7f5471cf346c33
Gitweb:     http://git.kernel.org/tip/a2bcd4731f77cb77ae4b5e4a3d7f5471cf346c33
Author:     Ingo Molnar <[email protected]>
AuthorDate: Sun, 29 Mar 2009 23:47:48 +0200
Committer:  Ingo Molnar <[email protected]>
CommitDate: Mon, 30 Mar 2009 14:02:02 +0200

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)

LKML-Reference: <[email protected]>

---
 arch/x86/include/asm/traps.h |    1 +
 arch/x86/mm/fault.c          |   42 +++++++++---------------------------------
 2 files changed, 10 insertions(+), 33 deletions(-)
arch/x86/include/asm/traps.h +1 -0
index 0d53425..37fb07a 100644
@@ -2,6 +2,7 @@
 #define _ASM_X86_TRAPS_H
 
 #include <asm/debugreg.h>
+#include <asm/siginfo.h>			/* TRAP_TRACE, ... */
 
 #ifdef CONFIG_X86_32
 #define dotraplinkage
arch/x86/mm/fault.c +10 -34

50 lines not on this page · raw message