MIPS: Don't export kernel internal details in uapi/asm/break.h
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.
Signed-off-by David Daney <[email protected]>
--- arch/mips/include/uapi/asm/break.h | 4 ++++ 1 file changed, 4 insertions(+)
arch/mips/include/uapi/asm/break.h +4 -0
@@ -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