[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20080727053433.GA12605@martell.zuzino.mipt.ru>
Date: Sun, 27 Jul 2008 09:34:33 +0400
From: Alexey Dobriyan <adobriyan@...il.com>
To: akpm@...l.org
Cc: hidave.darkstar@...il.com, linux-kernel@...r.kernel.org
Subject: [PATCH] Fix __ratelimit() re flags can't be static
Signed-off-by: Alexey Dobriyan <adobriyan@...il.com>
---
lib/ratelimit.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/lib/ratelimit.c
+++ b/lib/ratelimit.c
@@ -15,7 +15,6 @@
#include <linux/module.h>
static DEFINE_SPINLOCK(ratelimit_lock);
-static unsigned long flags;
/*
* __ratelimit - rate limiting
@@ -26,6 +25,8 @@ static unsigned long flags;
*/
int __ratelimit(struct ratelimit_state *rs)
{
+ unsigned long flags;
+
if (!rs->interval)
return 1;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists