summaryrefslogtreecommitdiffstats
path: root/include/asm-x86
diff options
context:
space:
mode:
authorJaswinder Singh2008-07-23 14:06:37 +0200
committerJaswinder Singh2008-07-23 14:06:37 +0200
commit70ef56414ec7e01d787c8e959bb259845df4ee4f (patch)
treeb59fbd9c1abdd5913074c28195005b72ad625d39 /include/asm-x86
parentx86: mm/init_XX.c declare functions before they get used (diff)
downloadkernel-qcow2-linux-70ef56414ec7e01d787c8e959bb259845df4ee4f.tar.gz
kernel-qcow2-linux-70ef56414ec7e01d787c8e959bb259845df4ee4f.tar.xz
kernel-qcow2-linux-70ef56414ec7e01d787c8e959bb259845df4ee4f.zip
x86: mm/fault.c declare do_page_fault before they get used
declared do_page_fault() in asm-x86/trap.h for both X86_32 and X86_64 removed do_invalid_op declaration from mm/fault.c as it is already declared in asm-x86/trap.h Signed-off-by: Jaswinder Singh <jaswinder@infradead.org>
Diffstat (limited to 'include/asm-x86')
-rw-r--r--include/asm-x86/traps.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-x86/traps.h b/include/asm-x86/traps.h
index a4b65a71bd66..b60fab546da7 100644
--- a/include/asm-x86/traps.h
+++ b/include/asm-x86/traps.h
@@ -51,6 +51,8 @@ void do_spurious_interrupt_bug(struct pt_regs *, long);
unsigned long patch_espfix_desc(unsigned long, unsigned long);
asmlinkage void math_emulate(long);
+void do_page_fault(struct pt_regs *regs, unsigned long error_code);
+
#else /* CONFIG_X86_32 */
asmlinkage void double_fault(void);
@@ -62,5 +64,7 @@ asmlinkage void do_coprocessor_error(struct pt_regs *);
asmlinkage void do_simd_coprocessor_error(struct pt_regs *);
asmlinkage void do_spurious_interrupt_bug(struct pt_regs *);
+asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long error_code);
+
#endif /* CONFIG_X86_32 */
#endif /* _ASM_X86_TRAPS_H */