Re: [Bcache v13 04/16] Fix ratelimit macro to compile in c99 mode

From
Tejun Heo <hidden>
Date
2012-05-15 16:43:08
Also in
dm-devel, lkml
Reply to
Kent Overstreet, 2012-05-10
On Wed, May 09, 2012 at 11:09:00PM -0400, Kent Overstreet wrote:
quoted hunk ↗ jump to hunk
Signed-off-by: Kent Overstreet <redacted>
---
 include/linux/ratelimit.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/linux/ratelimit.h b/include/linux/ratelimit.h
index e11ccb4..9ad57d3 100644
--- a/include/linux/ratelimit.h
+++ b/include/linux/ratelimit.h
@@ -20,7 +20,7 @@ struct ratelimit_state {
 #define DEFINE_RATELIMIT_STATE(name, interval_init, burst_init)		\
 									\
 	struct ratelimit_state name = {					\
-		.lock		= __RAW_SPIN_LOCK_UNLOCKED(name.lock),	\
+		.lock		= __RAW_SPIN_LOCK_INITIALIZER(name.lock),\
NACK, kernel is not built in c99 mode and using anonymous struct in
struct initializers is an accepted convention.

Thanks.

-- 
tejun
Thread (83 messages) 83 messages, 9 authors, last reply 2012-06-01
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help