[PATCH] Fix __ratelimit() re flags can't be static

From: Alexey Dobriyan
Date: Sun Jul 27 2008 - 01:34:48 EST


Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxx>
---

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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/