linux-mips
[Top] [All Lists]

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

To: linux-mips@linux-mips.org, ralf@linux-mips.org
Subject: [PATCH] MIPS: Don't export kernel internal details in uapi/asm/break.h
From: David Daney <ddaney.cavm@gmail.com>
Date: Fri, 1 Feb 2013 11:21:32 -0800
Cc: David Daney <david.daney@cavium.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=bGn/qD+qLnzakEI+QTY6ilHV3tpN+rYIpG1n8sL6jo0=; b=MqxHxq5OGAHGX1fg93OcvC07e/M7S0RDa1dLynMXgR0rNnceXxuuCZjpWnG7SG/dvd IZQo7+whxZObhLaE5E/MN1bh++28JdMHGIENgpt8XyqRwYro4Juu+JPRCZoizop4f96Y ds3QcBpkEGwduT3NlQsvC2EbgM973rDd5L2JdCo0KoSdhcA7HdnTs2NNqV4y5nvNiq95 5gRdSPXC/M2Q3XH3j/lg35Sr1EdvAdoB9GLHci4ooc/9GjOyKnR2TbVHszxteQxRixod 7l6EkcpDqqFdD9M7YTptNN+Ubf/PBAbpFnRsSISdbMz5n8WIA8bFdJjwqBqj7IgRzPvj Webg==
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Sender: linux-mips-bounce@linux-mips.org
From: David Daney <david.daney@cavium.com>

Only the codes used by userspace should be exported.

Signed-off-by: David Daney <david.daney@cavium.com>
---
 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


<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] MIPS: Don't export kernel internal details in uapi/asm/break.h, David Daney <=