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

powerpc: Fix call to flush_ptrace_hw_breakpoint()

Fix the error in spelling the config option for hw-breakpoints and fix
the build issue that follows.

Signed-off by: K.Prasad <prasad@linux.vnet.ibm.com>

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

authored by

K.Prasad and committed by
Benjamin Herrenschmidt
e0780b72 357574c4

+5 -3
+5 -3
arch/powerpc/kernel/process.c
··· 353 353 prime_debug_regs(new_thread); 354 354 } 355 355 #else /* !CONFIG_PPC_ADV_DEBUG_REGS */ 356 + #ifndef CONFIG_HAVE_HW_BREAKPOINT 356 357 static void set_debug_reg_defaults(struct thread_struct *thread) 357 358 { 358 359 if (thread->dabr) { ··· 361 360 set_dabr(0); 362 361 } 363 362 } 363 + #endif /* !CONFIG_HAVE_HW_BREAKPOINT */ 364 364 #endif /* CONFIG_PPC_ADV_DEBUG_REGS */ 365 365 366 366 int set_dabr(unsigned long dabr) ··· 672 670 { 673 671 discard_lazy_cpu_state(); 674 672 675 - #ifdef CONFIG_HAVE_HW_BREAKPOINTS 673 + #ifdef CONFIG_HAVE_HW_BREAKPOINT 676 674 flush_ptrace_hw_breakpoint(current); 677 - #else /* CONFIG_HAVE_HW_BREAKPOINTS */ 675 + #else /* CONFIG_HAVE_HW_BREAKPOINT */ 678 676 set_debug_reg_defaults(&current->thread); 679 - #endif /* CONFIG_HAVE_HW_BREAKPOINTS */ 677 + #endif /* CONFIG_HAVE_HW_BREAKPOINT */ 680 678 } 681 679 682 680 void