Files
i2som-imx-linux/include/linux
Jiri Slaby 1b011e2f13 ratelimit: fix WARN_ON_RATELIMIT return value
The macro is to be used similarly as WARN_ON as:

  if (WARN_ON_RATELIMIT(condition, state))
	do_something();

One would expect only 'condition' to affect the 'if', but
WARN_ON_RATELIMIT does internally only:

  WARN_ON((condition) && __ratelimit(state))

So the 'if' is affected by the ratelimiting state too.  Fix this by
returning 'condition' in any case.

Note that nobody uses WARN_ON_RATELIMIT yet, so there is nothing to
worry about.  But I was about to use it and was a bit surprised.

Link: http://lkml.kernel.org/r/20161215093224.23126-1-jslaby@suse.cz
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2016-12-20 09:48:47 -08:00
..
2016-12-08 13:31:11 -05:00
2016-12-17 21:27:44 -05:00
2016-12-08 16:37:33 -08:00
2016-12-05 19:01:16 -05:00
2016-11-25 10:15:13 -08:00
2016-12-05 19:01:16 -05:00
2016-12-05 18:58:32 -05:00
2016-11-30 14:36:01 +11:00
2016-12-12 18:55:06 -08:00
2016-12-06 11:05:46 +01:00
2016-12-14 17:25:18 -08:00
2016-12-16 00:13:41 +02:00
2016-11-26 11:18:02 -08:00
2016-12-08 13:18:35 -05:00
2016-12-14 10:54:29 +01:00
2016-12-12 18:55:07 -08:00
2016-12-06 10:17:03 +02:00
2016-12-08 14:21:47 -05:00
2016-12-16 00:13:41 +02:00
2016-12-09 22:12:21 -05:00
2016-12-12 18:55:08 -08:00