summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2009-11-07 07:17:25 +0100
committerDavid S. Miller <davem@davemloft.net>2009-11-07 09:46:34 +0100
commitd3bcfefaca27c1bfc8f740f5fff5b25d52ed1211 (patch)
tree324e867ff8628cbc0e2aca95397485b55978a06c /net/core
parentnet: compat: No need to define IFHWADDRLEN and IFNAMSIZ twice. (diff)
downloadlinux-d3bcfefaca27c1bfc8f740f5fff5b25d52ed1211.tar.xz
linux-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;