全部博文(12)
分类: 嵌入式
2014-03-20 22:53:05
编译linux内核时出现如下现象
/usr/arm-linux/linux/arch/x86/include/asm/ptrace.h:146:13: note: previous declaration of 'syscall_trace_leave' was here
make[2]: *** [arch/x86/kernel/ptrace.o] Error 1
make[1]: *** [arch/x86/kernel] Error 2
make: *** [arch/x86] Error 2
--- linux-2.6.32.59/arch/x86/include/asm/ptrace.h +++ fix_ptrace.o_compile_error/arch/x86/include/asm/ptrace.h @@ -130,6 +130,7 @@ #ifdef __KERNEL__ #include+#include struct cpuinfo_x86; struct task_struct; @@ -142,8 +143,8 @@ int error_code, int si_code); void signal_fault(struct pt_regs *regs, void __user *frame, char *where); -extern long syscall_trace_enter(struct pt_regs *); -extern void syscall_trace_leave(struct pt_regs *); +extern asmregparm long syscall_trace_enter(struct pt_regs *); +extern asmregparm void syscall_trace_leave(struct pt_regs *); static inline unsigned long regs_return_value(struct pt_regs *regs) {