__ratelimit() cpu flags can't be static

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Dave Young <hidave.darkstar@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Alexey Dobriyan 2008-07-28 15:46:21 -07:00 committed by Linus Torvalds
parent 14fcc23fdc
commit 4d9c377c81

View File

@ -15,7 +15,6 @@
#include <linux/module.h> #include <linux/module.h>
static DEFINE_SPINLOCK(ratelimit_lock); static DEFINE_SPINLOCK(ratelimit_lock);
static unsigned long flags;
/* /*
* __ratelimit - rate limiting * __ratelimit - rate limiting
@ -26,6 +25,8 @@ static unsigned long flags;
*/ */
int __ratelimit(struct ratelimit_state *rs) int __ratelimit(struct ratelimit_state *rs)
{ {
unsigned long flags;
if (!rs->interval) if (!rs->interval)
return 1; return 1;