From: Ingo Molnar Date: Tue, 27 Jun 2006 09:54:50 +0000 (-0700) Subject: [PATCH] pi-futex: introduce WARN_ON_SMP X-Git-Tag: v2.6.18-rc1~498 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8eb94f80dd2da5977c35cd094f0802c1501a12cd;p=linux-2.6 [PATCH] pi-futex: introduce WARN_ON_SMP Introduce a new WARN_ON variant: WARN_ON_SMP(cond). Signed-off-by: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/asm-generic/bug.h b/include/asm-generic/bug.h index 845cb67ad8..8ceab7bcd8 100644 --- a/include/asm-generic/bug.h +++ b/include/asm-generic/bug.h @@ -51,4 +51,10 @@ __ret; \ }) +#ifdef CONFIG_SMP +# define WARN_ON_SMP(x) WARN_ON(x) +#else +# define WARN_ON_SMP(x) do { } while (0) +#endif + #endif