diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2009-11-06 22:17:25 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-07 00:46:34 -0800 |
commit | d3bcfefaca27c1bfc8f740f5fff5b25d52ed1211 (patch) | |
tree | 324e867ff8628cbc0e2aca95397485b55978a06c | |
parent | b622d97a63ad4ce890b625c62acd1bb894592e63 (diff) | |
download | linux-3.10-d3bcfefaca27c1bfc8f740f5fff5b25d52ed1211.tar.gz linux-3.10-d3bcfefaca27c1bfc8f740f5fff5b25d52ed1211.tar.bz2 linux-3.10-d3bcfefaca27c1bfc8f740f5fff5b25d52ed1211.zip |
net: Replace old style lock initializer
SPIN_LOCK_UNLOCKED is deprecated. Use DEFINE_SPINLOCK instead.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/core/drop_monitor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/drop_monitor.c b/net/core/drop_monitor.c index 0a113f26bc9..b8e9d3a8688 100644 --- a/net/core/drop_monitor.c +++ b/net/core/drop_monitor.c @@ -41,7 +41,7 @@ static void send_dm_alert(struct work_struct *unused); * netlink alerts */ static int trace_state = TRACE_OFF; -static spinlock_t trace_state_lock = SPIN_LOCK_UNLOCKED; +static DEFINE_SPINLOCK(trace_state_lock); struct per_cpu_dm_data { struct work_struct dm_alert_work; |