summaryrefslogtreecommitdiff
path: root/include/asm-ppc64
diff options
context:
space:
mode:
authorMatt Mackall <mpm@selenic.com>2004-08-22 22:55:57 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-08-22 22:55:57 -0700
commit81ca0296edb7b1ab4ea588159cca4cac0215a73e (patch)
treeca71fbdae6c2cede6f6845826f2be5a296042faf /include/asm-ppc64
parent74dcabc28af9cfc64b547e88246eda9fdf9d38f0 (diff)
[PATCH] move duplicate BUG and WARN_ON bits to asm-generic
This moves duplicate BUG, PAGE_BUG, BUG_ON, and WARN_ON code to asm-generic and makes them slightly more consistent. This cleanup is also preparatory work for making BUG and WARN verbosity configurable. Signed-off-by: Matt Mackall <mpm@selenic.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-ppc64')
-rw-r--r--include/asm-ppc64/bug.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/asm-ppc64/bug.h b/include/asm-ppc64/bug.h
index 9e439ee1ed4f..790bc56091d6 100644
--- a/include/asm-ppc64/bug.h
+++ b/include/asm-ppc64/bug.h
@@ -43,8 +43,6 @@ struct bug_entry {
"i" (__FUNCTION__)); \
} while (0)
-#define PAGE_BUG(page) do { BUG(); } while (0)
-
#define WARN_ON(x) do { \
__asm__ __volatile__( \
"1: tdnei %0,0\n" \
@@ -56,4 +54,10 @@ struct bug_entry {
} while (0)
#endif
+
+#define HAVE_ARCH_BUG
+#define HAVE_ARCH_BUG_ON
+#define HAVE_ARCH_WARN_ON
+#include <asm-generic/bug.h>
+
#endif