Skip to contentSkip to conversation

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

PATCH New David Daney 1 participant 1 message Feb 1, 2013 MIPS

lore
Share & tools
lore
#0 lore raw

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

From: David Daney <[email protected]>

Only the codes used by userspace should be exported.

---
 arch/mips/include/uapi/asm/break.h | 4 ++++
 1 file changed, 4 insertions(+)
arch/mips/include/uapi/asm/break.h +4 -0
index 6f61d08..652431f 100644
@@ -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 */
Signature · 1 line
1.7.11.7