Re: [Patch][hw-breakpoint] Use generic hw-breakpoint interfaces for new PPC ptrace flags
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2012-05-14 00:53:58
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2012-05-14 00:53:58
On Fri, 2012-05-11 at 14:13 +0530, K.Prasad wrote:
+#ifdef CONFIG_HAVE_HW_BREAKPOINT + int ret, len = 0; + struct thread_struct *thread = &(child->thread); + struct perf_event *bp; + struct perf_event_attr attr; +#endif /* CONFIG_HAVE_HW_BREAKPOINT */
"ret" is unused in that function, causing a warning which breaks the build since we have -Werror. I'm fixing that locally but be more careful next time please. Ben.