Skip to contentSkip to conversation

sh: Fix conflicting definitions of ptrace_triggered

PATCH Applied Paul Gortmaker 2 participants 2 messages Jul 31, 2011 – Aug 3, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sh: Fix conflicting definitions of ptrace_triggered

The extra nmi argument is causing this compile fail:

CC arch/sh/kernel/ptrace_32.o
arch/sh/kernel/ptrace_32.c:66:6: error: conflicting types for 'ptrace_triggered' arch/sh/include/asm/ptrace.h:126:13: note: previous declaration of 'ptrace_triggered' was here make[3]: *** [arch/sh/kernel/ptrace_32.o] Error 1

arch/sh/include/asm/ptrace.h +1 -1
index b97baf8..2d3679b 100644
@@ -123,7 +123,7 @@ static inline unsigned long regs_get_kernel_stack_nth(struct pt_regs *regs,
 struct perf_event;
 struct perf_sample_data;
 
-extern void ptrace_triggered(struct perf_event *bp, int nmi,
+extern void ptrace_triggered(struct perf_event *bp,
 		      struct perf_sample_data *data, struct pt_regs *regs);
 
 #define task_pt_regs(task) \
Signature · 1 line
1.7.6
Applied
#1 lore raw
Quoted 9 lines · Paul Gortmaker

The extra nmi argument is causing this compile fail:

CC arch/sh/kernel/ptrace_32.o
arch/sh/kernel/ptrace_32.c:66:6: error: conflicting types for 'ptrace_triggered' arch/sh/include/asm/ptrace.h:126:13: note: previous declaration of 'ptrace_triggered' was here make[3]: *** [arch/sh/kernel/ptrace_32.o] Error 1

Applied, thanks.