Subject: [PATCH] MIPS: Don't export kernel internal details in uapi/asm/break.h

From: David Daney <[email-masked]>
Date: Fri, 1 Feb 2013 11:21:32 -0800

From: David Daney <[email-masked]>

Only the codes used by userspace should be exported.

Signed-off-by: David Daney <[email-masked]>
---
 arch/mips/include/uapi/asm/break.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/mips/include/uapi/asm/break.h b/arch/mips/include/uapi/asm/break.h
index 6f61d08..652431f 100644
--- a/arch/mips/include/uapi/asm/break.h
+++ b/arch/mips/include/uapi/asm/break.h
@@ -20,10 +20,14 @@
 #define BRK_OVERFLOW	6	/* Overflow check */
 #define BRK_DIVZERO	7	/* Divide by zero check */
 #define BRK_RANGE	8	/* Range error check */
+
+#ifdef __KERNEL__
+/* Break codes used internally to the kernel. */
 #define BRK_BUG		12	/* Used by BUG() */
 #define BRK_MEMU	514	/* Used by FPU emulator */
 #define BRK_KPROBE_BP	515	/* Kprobe break */
 #define BRK_KPROBE_SSTEPBP 516	/* Kprobe single step software implementation */
 #define BRK_MULOVF	1023	/* Multiply overflow */
+#endif /* __KERNEL__ */
 
 #endif /* __ASM_BREAK_H */
-- 
1.7.11.7