Messages in this thread Patch in this message |  | | | Date | Sun, 27 Jul 2008 09:34:33 +0400 | | From | Alexey Dobriyan <> | | Subject | [PATCH] Fix __ratelimit() re flags can't be static | |
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.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;
|  |