Commit 4d9c377c81d37740b25cacf025f95c084eafabbb

Authored by Alexey Dobriyan
Committed by Linus Torvalds
1 parent 14fcc23fdc

__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>

Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff

... ... @@ -15,7 +15,6 @@
15 15 #include <linux/module.h>
16 16  
17 17 static DEFINE_SPINLOCK(ratelimit_lock);
18   -static unsigned long flags;
19 18  
20 19 /*
21 20 * __ratelimit - rate limiting
... ... @@ -26,6 +25,8 @@
26 25 */
27 26 int __ratelimit(struct ratelimit_state *rs)
28 27 {
  28 + unsigned long flags;
  29 +
29 30 if (!rs->interval)
30 31 return 1;
31 32