From fdb551a4c59945f868b8855e5baf161c9f1c0518 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Thu, 19 May 2005 12:08:04 +0000 Subject: Bugs are now a configuration option. Signed-off-by: Ralf Baechle --- include/asm-mips/bug.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/asm-mips/bug.h') diff --git a/include/asm-mips/bug.h b/include/asm-mips/bug.h index 3f594b440abc..758712f1c88f 100644 --- a/include/asm-mips/bug.h +++ b/include/asm-mips/bug.h @@ -1,6 +1,10 @@ #ifndef __ASM_BUG_H #define __ASM_BUG_H +#include + +#ifdef CONFIG_BUG + #include #ifdef CONFIG_BUG @@ -14,3 +18,5 @@ do { \ #include #endif + +#endif /* __ASM_BUG_H */ -- cgit v1.2.3 From ffd099bd33c97db4be698ff8d8733bd6a301f6a3 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Thu, 19 May 2005 17:05:09 +0000 Subject: Fix build for CONFIG_BUG=n. Yes, bugs are now a compile time option ;-) Signed-off-by: Ralf Baechle --- include/asm-mips/bug.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/asm-mips/bug.h') diff --git a/include/asm-mips/bug.h b/include/asm-mips/bug.h index 758712f1c88f..8e1144f4a0b0 100644 --- a/include/asm-mips/bug.h +++ b/include/asm-mips/bug.h @@ -15,8 +15,8 @@ do { \ } while (0) #endif -#include - #endif +#include + #endif /* __ASM_BUG_H */ -- cgit v1.2.3 From 8592d4c00eeb92495eaab6374baaad79b30866ed Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Sat, 29 Oct 2005 19:32:38 +0100 Subject: Fix weirdness in Signed-off-by: Ralf Baechle --- include/asm-mips/bug.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include/asm-mips/bug.h') diff --git a/include/asm-mips/bug.h b/include/asm-mips/bug.h index 8e1144f4a0b0..87d49a5bdc63 100644 --- a/include/asm-mips/bug.h +++ b/include/asm-mips/bug.h @@ -7,13 +7,12 @@ #include -#ifdef CONFIG_BUG -#define HAVE_ARCH_BUG #define BUG() \ do { \ __asm__ __volatile__("break %0" : : "i" (BRK_BUG)); \ } while (0) -#endif + +#define HAVE_ARCH_BUG #endif -- cgit v1.2.3