summaryrefslogtreecommitdiff
path: root/include/asm-ppc
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-ppc
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-ppc')
-rw-r--r--include/asm-ppc/bug.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/asm-ppc/bug.h b/include/asm-ppc/bug.h
index 6b2579d9d4ee..e99c6cb9d618 100644
--- a/include/asm-ppc/bug.h
+++ b/include/asm-ppc/bug.h
@@ -35,8 +35,6 @@ struct bug_entry {
} \
} while (0)
-#define PAGE_BUG(page) BUG()
-
#define WARN_ON(x) do { \
if (!__builtin_constant_p(x) || (x)) { \
__asm__ __volatile__( \
@@ -49,4 +47,9 @@ struct bug_entry {
} \
} while (0)
+#define HAVE_ARCH_BUG
+#define HAVE_ARCH_BUG_ON
+#define HAVE_ARCH_WARN_ON
+#include <asm-generic/bug.h>
+
#endif