projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b622d97
)
net: Replace old style lock initializer
author
Thomas Gleixner
<tglx@linutronix.de>
Sat, 7 Nov 2009 06:17:25 +0000
(22:17 -0800)
committer
David S. Miller
<davem@davemloft.net>
Sat, 7 Nov 2009 08:46:34 +0000
(
00:46
-0800)
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>
net/core/drop_monitor.c
patch
|
blob
|
blame
|
history
diff --git
a/net/core/drop_monitor.c
b/net/core/drop_monitor.c
index 0a113f26bc9f9e64e3de19a26751cbd6c746e242..b8e9d3a86887424a7db46bded809898443095d31 100644
(file)
--- 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;