aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2013-01-10 09:25:34 -0500
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-01-15 13:25:47 -0500
commitb9818c3312da66f4b83a4a2e8650628be1237cb5 (patch)
tree3facf032be97c0373ba03ee9bce55bb2955d1f55 /arch
parentfa5924640341f714af7757194d5da7ecd66abe2b (diff)
powerpc: Rename set_break to avoid naming conflict
With allmodconfig we are getting: drivers/tty/synclink_gt.c:160:12: error: conflicting types for 'set_break' arch/powerpc/include/asm/debug.h:49:5: note: previous declaration of 'set_break' was here drivers/tty/synclinkmp.c:526:12: error: conflicting types for 'set_break' arch/powerpc/include/asm/debug.h:49:5: note: previous declaration of 'set_break' was here This renames set_break to set_breakpoint to avoid this naming conflict Signed-off-by: Michael Neuling <mikey@neuling.org> Reported-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/include/asm/debug.h2
-rw-r--r--arch/powerpc/include/asm/hw_breakpoint.h2
-rw-r--r--arch/powerpc/kernel/hw_breakpoint.c8
-rw-r--r--arch/powerpc/kernel/process.c6
-rw-r--r--arch/powerpc/kernel/signal.c2
-rw-r--r--arch/powerpc/xmon/xmon.c2
6 files changed, 11 insertions, 11 deletions
diff --git a/arch/powerpc/include/asm/debug.h b/arch/powerpc/include/asm/debug.h
index 8d85ffb03e61..d2516308ed1e 100644
--- a/arch/powerpc/include/asm/debug.h
+++ b/arch/powerpc/include/asm/debug.h
@@ -46,7 +46,7 @@ static inline int debugger_break_match(struct pt_regs *regs) { return 0; }
46static inline int debugger_fault_handler(struct pt_regs *regs) { return 0; } 46static inline int debugger_fault_handler(struct pt_regs *regs) { return 0; }
47#endif 47#endif
48 48
49int set_break(struct arch_hw_breakpoint *brk); 49int set_breakpoint(struct arch_hw_breakpoint *brk);
50#ifdef CONFIG_PPC_ADV_DEBUG_REGS 50#ifdef CONFIG_PPC_ADV_DEBUG_REGS
51extern void do_send_trap(struct pt_regs *regs, unsigned long address, 51extern void do_send_trap(struct pt_regs *regs, unsigned long address,
52 unsigned long error_code, int signal_code, int brkpt); 52 unsigned long error_code, int signal_code, int brkpt);
diff --git a/arch/powerpc/include/asm/hw_breakpoint.h b/arch/powerpc/include/asm/hw_breakpoint.h
index 2c91faf981db..96437e5014e1 100644
--- a/arch/powerpc/include/asm/hw_breakpoint.h
+++ b/arch/powerpc/include/asm/hw_breakpoint.h
@@ -81,7 +81,7 @@ static inline void hw_breakpoint_disable(void)
81 brk.address = 0; 81 brk.address = 0;
82 brk.type = 0; 82 brk.type = 0;
83 brk.len = 0; 83 brk.len = 0;
84 set_break(&brk); 84 set_breakpoint(&brk);
85} 85}
86extern void thread_change_pc(struct task_struct *tsk, struct pt_regs *regs); 86extern void thread_change_pc(struct task_struct *tsk, struct pt_regs *regs);
87 87
diff --git a/arch/powerpc/kernel/hw_breakpoint.c b/arch/powerpc/kernel/hw_breakpoint.c
index c7483d09fdd0..2a3e8dd547ec 100644
--- a/arch/powerpc/kernel/hw_breakpoint.c
+++ b/arch/powerpc/kernel/hw_breakpoint.c
@@ -73,7 +73,7 @@ int arch_install_hw_breakpoint(struct perf_event *bp)
73 * If so, DABR will be populated in single_step_dabr_instruction(). 73 * If so, DABR will be populated in single_step_dabr_instruction().
74 */ 74 */
75 if (current->thread.last_hit_ubp != bp) 75 if (current->thread.last_hit_ubp != bp)
76 set_break(info); 76 set_breakpoint(info);
77 77
78 return 0; 78 return 0;
79} 79}
@@ -191,7 +191,7 @@ void thread_change_pc(struct task_struct *tsk, struct pt_regs *regs)
191 191
192 info = counter_arch_bp(tsk->thread.last_hit_ubp); 192 info = counter_arch_bp(tsk->thread.last_hit_ubp);
193 regs->msr &= ~MSR_SE; 193 regs->msr &= ~MSR_SE;
194 set_break(info); 194 set_breakpoint(info);
195 tsk->thread.last_hit_ubp = NULL; 195 tsk->thread.last_hit_ubp = NULL;
196} 196}
197 197
@@ -276,7 +276,7 @@ int __kprobes hw_breakpoint_handler(struct die_args *args)
276 if (!(info->type & HW_BRK_TYPE_EXTRANEOUS_IRQ)) 276 if (!(info->type & HW_BRK_TYPE_EXTRANEOUS_IRQ))
277 perf_bp_event(bp, regs); 277 perf_bp_event(bp, regs);
278 278
279 set_break(info); 279 set_breakpoint(info);
280out: 280out:
281 rcu_read_unlock(); 281 rcu_read_unlock();
282 return rc; 282 return rc;
@@ -308,7 +308,7 @@ int __kprobes single_step_dabr_instruction(struct die_args *args)
308 if (!(info->type & HW_BRK_TYPE_EXTRANEOUS_IRQ)) 308 if (!(info->type & HW_BRK_TYPE_EXTRANEOUS_IRQ))
309 perf_bp_event(bp, regs); 309 perf_bp_event(bp, regs);
310 310
311 set_break(info); 311 set_breakpoint(info);
312 current->thread.last_hit_ubp = NULL; 312 current->thread.last_hit_ubp = NULL;
313 313
314 /* 314 /*
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c
index 8d56452e1dbd..99550d3615c4 100644
--- a/arch/powerpc/kernel/process.c
+++ b/arch/powerpc/kernel/process.c
@@ -366,7 +366,7 @@ static void set_debug_reg_defaults(struct thread_struct *thread)
366{ 366{
367 thread->hw_brk.address = 0; 367 thread->hw_brk.address = 0;
368 thread->hw_brk.type = 0; 368 thread->hw_brk.type = 0;
369 set_break(&thread->hw_brk); 369 set_breakpoint(&thread->hw_brk);
370} 370}
371#endif /* !CONFIG_HAVE_HW_BREAKPOINT */ 371#endif /* !CONFIG_HAVE_HW_BREAKPOINT */
372#endif /* CONFIG_PPC_ADV_DEBUG_REGS */ 372#endif /* CONFIG_PPC_ADV_DEBUG_REGS */
@@ -427,7 +427,7 @@ static inline int set_dawr(struct arch_hw_breakpoint *brk)
427 return 0; 427 return 0;
428} 428}
429 429
430int set_break(struct arch_hw_breakpoint *brk) 430int set_breakpoint(struct arch_hw_breakpoint *brk)
431{ 431{
432 __get_cpu_var(current_brk) = *brk; 432 __get_cpu_var(current_brk) = *brk;
433 433
@@ -538,7 +538,7 @@ struct task_struct *__switch_to(struct task_struct *prev,
538 */ 538 */
539#ifndef CONFIG_HAVE_HW_BREAKPOINT 539#ifndef CONFIG_HAVE_HW_BREAKPOINT
540 if (unlikely(hw_brk_match(&__get_cpu_var(current_brk), &new->thread.hw_brk))) 540 if (unlikely(hw_brk_match(&__get_cpu_var(current_brk), &new->thread.hw_brk)))
541 set_break(&new->thread.hw_brk); 541 set_breakpoint(&new->thread.hw_brk);
542#endif /* CONFIG_HAVE_HW_BREAKPOINT */ 542#endif /* CONFIG_HAVE_HW_BREAKPOINT */
543#endif 543#endif
544 544
diff --git a/arch/powerpc/kernel/signal.c b/arch/powerpc/kernel/signal.c
index 1f26956d3913..3003d890e9ef 100644
--- a/arch/powerpc/kernel/signal.c
+++ b/arch/powerpc/kernel/signal.c
@@ -132,7 +132,7 @@ static int do_signal(struct pt_regs *regs)
132 */ 132 */
133 if (current->thread.hw_brk.address && 133 if (current->thread.hw_brk.address &&
134 current->thread.hw_brk.type) 134 current->thread.hw_brk.type)
135 set_break(&current->thread.hw_brk); 135 set_breakpoint(&current->thread.hw_brk);
136#endif 136#endif
137 /* Re-enable the breakpoints for the signal stack */ 137 /* Re-enable the breakpoints for the signal stack */
138 thread_change_pc(current, regs); 138 thread_change_pc(current, regs);
diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c
index 529c1ed7f59f..13f85defabed 100644
--- a/arch/powerpc/xmon/xmon.c
+++ b/arch/powerpc/xmon/xmon.c
@@ -747,7 +747,7 @@ static void insert_cpu_bpts(void)
747 brk.address = dabr.address; 747 brk.address = dabr.address;
748 brk.type = (dabr.enabled & HW_BRK_TYPE_DABR) | HW_BRK_TYPE_PRIV_ALL; 748 brk.type = (dabr.enabled & HW_BRK_TYPE_DABR) | HW_BRK_TYPE_PRIV_ALL;
749 brk.len = 8; 749 brk.len = 8;
750 set_break(&brk); 750 set_breakpoint(&brk);
751 } 751 }
752 if (iabr && cpu_has_feature(CPU_FTR_IABR)) 752 if (iabr && cpu_has_feature(CPU_FTR_IABR))
753 mtspr(SPRN_IABR, iabr->address 753 mtspr(SPRN_IABR, iabr->address