Page MenuHomeFreeBSD

D8669.diff
No OneTemporary

D8669.diff

Index: head/sys/dev/netmap/netmap_freebsd.c
===================================================================
--- head/sys/dev/netmap/netmap_freebsd.c
+++ head/sys/dev/netmap/netmap_freebsd.c
@@ -1024,7 +1024,7 @@
mtx_lock(&nmk->worker_lock);
nmk->scheduled++;
if (nmk->worker_ctx.cfg.wchan) {
- wakeup((void *)nmk->worker_ctx.cfg.wchan);
+ wakeup((void *)(uintptr_t)nmk->worker_ctx.cfg.wchan);
}
mtx_unlock(&nmk->worker_lock);
}
@@ -1090,8 +1090,8 @@
continue;
} else if (nmk->run) {
/* wait on event with one second timeout */
- msleep_spin((void *)ctx->cfg.wchan, &nmk->worker_lock,
- "nmk_ev", hz);
+ msleep_spin((void *)(uintptr_t)ctx->cfg.wchan,
+ &nmk->worker_lock, "nmk_ev", hz);
nmk->scheduled++;
}
mtx_unlock(&nmk->worker_lock);

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 26, 9:35 AM (11 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15603405
Default Alt Text
D8669.diff (802 B)

Event Timeline