Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: declare set_breakpoint() static

set_breakpoint() is only used in process.c so make it static

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

authored by

Christophe Leroy and committed by
Michael Ellerman
b5ac51d7 e8cb7a55

+7 -8
-1
arch/powerpc/include/asm/debug.h
··· 45 45 static inline int debugger_fault_handler(struct pt_regs *regs) { return 0; } 46 46 #endif 47 47 48 - void set_breakpoint(struct arch_hw_breakpoint *brk); 49 48 void __set_breakpoint(struct arch_hw_breakpoint *brk); 50 49 bool ppc_breakpoint_available(void); 51 50 #ifdef CONFIG_PPC_ADV_DEBUG_REGS
+7 -7
arch/powerpc/kernel/process.c
··· 717 717 EXPORT_SYMBOL_GPL(switch_booke_debug_regs); 718 718 #else /* !CONFIG_PPC_ADV_DEBUG_REGS */ 719 719 #ifndef CONFIG_HAVE_HW_BREAKPOINT 720 + static void set_breakpoint(struct arch_hw_breakpoint *brk) 721 + { 722 + preempt_disable(); 723 + __set_breakpoint(brk); 724 + preempt_enable(); 725 + } 726 + 720 727 static void set_debug_reg_defaults(struct thread_struct *thread) 721 728 { 722 729 thread->hw_brk.address = 0; ··· 834 827 else 835 828 // Shouldn't happen due to higher level checks 836 829 WARN_ON_ONCE(1); 837 - } 838 - 839 - void set_breakpoint(struct arch_hw_breakpoint *brk) 840 - { 841 - preempt_disable(); 842 - __set_breakpoint(brk); 843 - preempt_enable(); 844 830 } 845 831 846 832 /* Check if we have DAWR or DABR hardware */