Skip to content

Commit

Permalink
__ratelimit() cpu flags can't be static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexey Dobriyan authored and Linus Torvalds committed Jul 28, 2008
1 parent 14fcc23 commit 4d9c377
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ratelimit.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include <linux/module.h>

static DEFINE_SPINLOCK(ratelimit_lock);
static unsigned long flags;

/*
* __ratelimit - rate limiting
Expand All @@ -26,6 +25,8 @@ static unsigned long flags;
*/
int __ratelimit(struct ratelimit_state *rs)
{
unsigned long flags;

if (!rs->interval)
return 1;

Expand Down

0 comments on commit 4d9c377

Please sign in to comment.