Thread (21 messages) 21 messages, 2 authors, 2012-06-12

[Bcache v14 02/16] Fix ratelimit macro to compile in c99 mode

From: Kent Overstreet <hidden>
Date: 2012-06-12 15:39:52
Also in: dm-devel, lkml
Subsystem: the rest · Maintainer: Linus Torvalds

Signed-off-by: Kent Overstreet <redacted>
---
 include/linux/ratelimit.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
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),\
 		.interval	= interval_init,			\
 		.burst		= burst_init,				\
 	}
-- 
1.7.9.3.327.g2980b
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help