patch-2.4.19 linux-2.4.19/include/asm-arm/page.h

Next file: linux-2.4.19/include/asm-arm/pgtable.h
Previous file: linux-2.4.19/include/asm-arm/mmu_context.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/include/asm-arm/page.h linux-2.4.19/include/asm-arm/page.h
@@ -63,11 +63,21 @@
 
 #ifndef __ASSEMBLY__
 
+#ifdef CONFIG_DEBUG_BUGVERBOSE
 extern void __bug(const char *file, int line, void *data);
 
+/* give file/line information */
 #define BUG()		__bug(__FILE__, __LINE__, NULL)
 #define PAGE_BUG(page)	__bug(__FILE__, __LINE__, page)
 
+#else
+
+/* these just cause an oops */
+#define BUG()		(*(int *)0 = 0)
+#define PAGE_BUG(page)	(*(int *)0 = 0)
+
+#endif
+
 /* Pure 2^n version of get_order */
 static inline int get_order(unsigned long size)
 {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)