From: Kent Overstreet Subject: [Bcache v15 02/16] Fix ratelimit macro to compile in c99 mode Date: Mon, 23 Jul 2012 16:50:45 -0700 Message-ID: <1343087459-17645-3-git-send-email-koverstreet@google.com> References: <1343087459-17645-1-git-send-email-koverstreet@google.com> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1343087459-17645-1-git-send-email-koverstreet@google.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: linux-bcache@vger.kernel.org, linux-kernel@vger.kernel.org, dm-devel@redhat.com Cc: tj@kernel.org, joe@perches.com, Kent Overstreet , vgoyal@redhat.com List-Id: dm-devel.ids Signed-off-by: Kent Overstreet --- 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