summaryrefslogtreecommitdiff
path: root/include/asm-sh
diff options
context:
space:
mode:
authorRussell King <rmk@arm.linux.org.uk>2003-01-12 23:24:04 -0800
committerLinus Torvalds <torvalds@penguin.transmeta.com>2003-01-12 23:24:04 -0800
commit9e5350557e7ba76771c66155132c117a69a0508e (patch)
tree3167c53fece393622aaa9826b06e71b4187e35c1 /include/asm-sh
parentfb5805fb279e47410296f8739af1a02143f48a8a (diff)
[PATCH] use <asm/bug.h> for BUG() defines
This patch moves BUG() and PAGE_BUG() from asm/page.h into asm/bug.h. We also fix up linux/dcache.h, which included asm/page.h for the sole purpose of getting the BUG() definition. Since linux/kernel.h and linux/smp.h make use of BUG(), asm/bug.h is included there as well. In addition, linux/jbd.h did not contain a clear path with which to obtain the archtecture BUG() definition, but did contain its own definition.
Diffstat (limited to 'include/asm-sh')
-rw-r--r--include/asm-sh/bug.h16
-rw-r--r--include/asm-sh/page.h12
2 files changed, 16 insertions, 12 deletions
diff --git a/include/asm-sh/bug.h b/include/asm-sh/bug.h
new file mode 100644
index 000000000000..a8624ef03788
--- /dev/null
+++ b/include/asm-sh/bug.h
@@ -0,0 +1,16 @@
+#ifndef __ASM_SH_BUG_H
+#define __ASM_SH_BUG_H
+
+/*
+ * Tell the user there is some problem.
+ */
+#define BUG() do { \
+ printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
+ asm volatile("nop"); \
+} while (0)
+
+#define PAGE_BUG(page) do { \
+ BUG(); \
+} while (0)
+
+#endif
diff --git a/include/asm-sh/page.h b/include/asm-sh/page.h
index b124b63e23ce..742f66dac325 100644
--- a/include/asm-sh/page.h
+++ b/include/asm-sh/page.h
@@ -90,18 +90,6 @@ typedef struct { unsigned long pgprot; } pgprot_t;
#ifndef __ASSEMBLY__
-/*
- * Tell the user there is some problem.
- */
-#define BUG() do { \
- printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
- asm volatile("nop"); \
-} while (0)
-
-#define PAGE_BUG(page) do { \
- BUG(); \
-} while (0)
-
/* Pure 2^n version of get_order */
static __inline__ int get_order(unsigned long size)
{