mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 00:21:17 +00:00
__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
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue