summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2009-11-06 22:17:25 -0800
committerDavid S. Miller <davem@davemloft.net>2009-11-07 00:46:34 -0800
commitd3bcfefaca27c1bfc8f740f5fff5b25d52ed1211 (patch)
tree324e867ff8628cbc0e2aca95397485b55978a06c /net/core
parentb622d97a63ad4ce890b625c62acd1bb894592e63 (diff)
downloadlinux-stable-d3bcfefaca27c1bfc8f740f5fff5b25d52ed1211.tar.gz
linux-stable-d3bcfefaca27c1bfc8f740f5fff5b25d52ed1211.tar.bz2
linux-stable-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>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/drop_monitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/drop_monitor.c b/net/core/drop_monitor.c
index 0a113f26bc9f..b8e9d3a86887 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;