__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:
parent
14fcc23fdc
commit
4d9c377c81
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user