lkml.org 
[lkml]   [2008]   [Jul]   [27]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateSun, 27 Jul 2008 09:34:33 +0400
FromAlexey 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;
 


\
 
 \ /
  Last update: 2008-07-27 07:37    [from the cache]
©2003-2008