diff options
Diffstat (limited to 'net/core')
| -rw-r--r-- | net/core/dst.c | 3 | ||||
| -rw-r--r-- | net/core/netpoll.c | 4 | ||||
| -rw-r--r-- | net/core/pktgen.c | 2 |
3 files changed, 4 insertions, 5 deletions
diff --git a/net/core/dst.c b/net/core/dst.c index 334790da9f16..470c05bc4cb2 100644 --- a/net/core/dst.c +++ b/net/core/dst.c | |||
| @@ -39,8 +39,7 @@ static unsigned long dst_gc_timer_inc = DST_GC_MAX; | |||
| 39 | static void dst_run_gc(unsigned long); | 39 | static void dst_run_gc(unsigned long); |
| 40 | static void ___dst_free(struct dst_entry * dst); | 40 | static void ___dst_free(struct dst_entry * dst); |
| 41 | 41 | ||
| 42 | static struct timer_list dst_gc_timer = | 42 | static DEFINE_TIMER(dst_gc_timer, dst_run_gc, DST_GC_MIN, 0); |
| 43 | TIMER_INITIALIZER(dst_run_gc, DST_GC_MIN, 0); | ||
| 44 | 43 | ||
| 45 | static void dst_run_gc(unsigned long dummy) | 44 | static void dst_run_gc(unsigned long dummy) |
| 46 | { | 45 | { |
diff --git a/net/core/netpoll.c b/net/core/netpoll.c index a1a9a7abff50..5265dfd69928 100644 --- a/net/core/netpoll.c +++ b/net/core/netpoll.c | |||
| @@ -645,10 +645,10 @@ int netpoll_setup(struct netpoll *np) | |||
| 645 | 645 | ||
| 646 | npinfo->rx_flags = 0; | 646 | npinfo->rx_flags = 0; |
| 647 | npinfo->rx_np = NULL; | 647 | npinfo->rx_np = NULL; |
| 648 | npinfo->poll_lock = SPIN_LOCK_UNLOCKED; | 648 | spin_lock_init(&npinfo->poll_lock); |
| 649 | npinfo->poll_owner = -1; | 649 | npinfo->poll_owner = -1; |
| 650 | npinfo->tries = MAX_RETRIES; | 650 | npinfo->tries = MAX_RETRIES; |
| 651 | npinfo->rx_lock = SPIN_LOCK_UNLOCKED; | 651 | spin_lock_init(&npinfo->rx_lock); |
| 652 | } else | 652 | } else |
| 653 | npinfo = ndev->npinfo; | 653 | npinfo = ndev->npinfo; |
| 654 | 654 | ||
diff --git a/net/core/pktgen.c b/net/core/pktgen.c index 8eb083b6041a..b3ad49fa7d78 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c | |||
| @@ -503,7 +503,7 @@ static int pg_delay_d = 0; | |||
| 503 | static int pg_clone_skb_d = 0; | 503 | static int pg_clone_skb_d = 0; |
| 504 | static int debug = 0; | 504 | static int debug = 0; |
| 505 | 505 | ||
| 506 | static spinlock_t _thread_lock = SPIN_LOCK_UNLOCKED; | 506 | static DEFINE_SPINLOCK(_thread_lock); |
| 507 | static struct pktgen_thread *pktgen_threads = NULL; | 507 | static struct pktgen_thread *pktgen_threads = NULL; |
| 508 | 508 | ||
| 509 | static char module_fname[128]; | 509 | static char module_fname[128]; |
