x86, ptrace: fix build breakage with gcc 4.7 (second try)
authorWilly Tarreau <w@1wt.eu>
Thu, 13 Jun 2013 17:36:35 +0000 (19:36 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 19 May 2014 05:53:12 +0000 (07:53 +0200)
syscall_trace_enter() and syscall_trace_leave() are only called from
within asm code and do not need to be declared in the .c at all.
Removing their reference fixes the build issue that was happening
with gcc 4.7.

Both Sven-Haegar Koch and Christoph Biedl confirmed this patch
addresses their respective build issues.

Cc: Sven-Haegar Koch <haegar@sdinet.de>
Cc: Christoph Biedl <linux-kernel.bfrz@manchmal.in-ulm.de>
Signed-off-by: Willy Tarreau <w@1wt.eu>
arch/x86/include/asm/ptrace.h

index 0f0d908349aa3f375e87f68802cbcb2e7753f725..1ec926d70ab4302fc579716489e4fee7b4415cdc 100644 (file)
@@ -142,9 +142,6 @@ extern void send_sigtrap(struct task_struct *tsk, struct pt_regs *regs,
                         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 *);
-
 static inline unsigned long regs_return_value(struct pt_regs *regs)
 {
        return regs->ax;