FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Device-mapper Development

 
 
LinkBack Thread Tools
 
Old 05-10-2012, 03:09 AM
Kent Overstreet
 
Default Fix ratelimit macro to compile in c99 mode

Signed-off-by: Kent Overstreet <koverstreet@google.com>
---
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),
.interval = interval_init,
.burst = burst_init,
}
--
1.7.9.rc2

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
 
Old 07-23-2012, 11:50 PM
Kent Overstreet
 
Default Fix ratelimit macro to compile in c99 mode

Signed-off-by: Kent Overstreet <koverstreet@google.com>
---
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),
.interval = interval_init,
.burst = burst_init,
}
--
1.7.7.3

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
 

Thread Tools




All times are GMT. The time now is 07:23 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org