Re: [PATCH 09/13] Hide bp_type_idx behind #ifdef __KERNEL__

From
David Howells <dhowells@redhat.com>
Date
2015-09-10 11:11:56
Also in
linux-arch, linux-fbdev, lkml, netdev
Reply to
Palmer Dabbelt, 2015-09-09
Palmer Dabbelt [off-list ref] wrote:
quoted hunk ↗ jump to hunk
+#ifdef __KERNEL__
 enum bp_type_idx {
 	TYPE_INST 	= 0,
-#ifdef CONFIG_HAVE_MIXED_BREAKPOINTS_REGS
+#if defined(CONFIG_HAVE_MIXED_BREAKPOINTS_REGS)
 	TYPE_DATA	= 0,
 #else
 	TYPE_DATA	= 1,
 #endif
 	TYPE_MAX
 };
+#endif /* __KERNEL__ */
This should be in include/linux/hw_breakpoint.h without __KERNEL__ markings.

David
Thread (169 messages) 169 messages, 8 authors, last reply 2023-02-10
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help