netmap: add cast to fix powerpc64 LINT kernel
Attempt to fix powerpc64 LINT kernel broken by r308000. Netmap's use of a uint64_t wchan seems odd, but in the interest of minimizing this change just cast through uintptr_t to silence the compiler warning. Reviewed by: jhb Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D8669
This commit is contained in:
parent
a10443e8ba
commit
54c7693f2c
@ -1024,7 +1024,7 @@ nm_os_kthread_wakeup_worker(struct nm_kthread *nmk)
|
||||
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 @@ nm_kthread_worker(void *data)
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user