linux/include/asm-generic
Herbert Xu 684f978347 [PATCH] Let WARN_ON/WARN_ON_ONCE return the condition
Letting WARN_ON/WARN_ON_ONCE return the condition means that you could do

if (WARN_ON(blah)) {
	handle_impossible_case
}

Rather than

if (unlikely(blah)) {
	WARN_ON(1)
	handle_impossible_case
}

I checked all the newly added WARN_ON_ONCE users and none of them test the
return status so we can still change it.

[akpm@osdl.org: warning fix]
[akpm@osdl.org: build fix]
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-09-29 09:18:06 -07:00
..
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-01-10 08:01:34 -08:00
2005-04-16 15:20:36 -07:00
2006-02-15 15:32:22 -08:00
2006-03-31 12:19:01 -08:00
2006-03-31 12:19:01 -08:00
2005-09-05 00:05:39 -07:00
2005-04-16 15:20:36 -07:00
2005-09-08 14:57:25 -07:00
2005-05-01 08:59:00 -07:00
2006-06-24 14:44:01 -07:00
2005-05-01 08:59:08 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-06-23 09:45:08 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00