diff options
| author | rmind <rmind@NetBSD.org> | 2008-09-15 10:43:29 +0000 |
|---|---|---|
| committer | rmind <rmind@NetBSD.org> | 2008-09-15 10:43:29 +0000 |
| commit | 38d7b7ba2ea200f67edcb42e58d4d559fdbf9a7b (patch) | |
| tree | f693538f2761d42119f634577cfee707666f6cf9 /sys/kern/subr_workqueue.c | |
| parent | ec7c336281773a0025e5d07b11b2a6236824b3ee (diff) | |
Replace intptr_t in few places to uintptr_t.
Diffstat (limited to 'sys/kern/subr_workqueue.c')
| -rw-r--r-- | sys/kern/subr_workqueue.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/subr_workqueue.c b/sys/kern/subr_workqueue.c index 19cfe6e756a..ccee9e25665 100644 --- a/sys/kern/subr_workqueue.c +++ b/sys/kern/subr_workqueue.c @@ -1,4 +1,4 @@ -/* $NetBSD: subr_workqueue.c,v 1.25 2008/07/02 14:47:34 matt Exp $ */ +/* $NetBSD: subr_workqueue.c,v 1.26 2008/09/15 10:43:29 rmind Exp $ */ /*- * Copyright (c)2002, 2005, 2006, 2007 YAMAMOTO Takashi, @@ -27,7 +27,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: subr_workqueue.c,v 1.25 2008/07/02 14:47:34 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: subr_workqueue.c,v 1.26 2008/09/15 10:43:29 rmind Exp $"); #include <sys/param.h> #include <sys/cpu.h> @@ -86,7 +86,7 @@ workqueue_queue_lookup(struct workqueue *wq, struct cpu_info *ci) idx = ci ? cpu_index(ci) : cpu_index(curcpu()); } - return (void *)((intptr_t)(wq) + WQ_SIZE + (idx * WQ_QUEUE_SIZE)); + return (void *)((uintptr_t)(wq) + WQ_SIZE + (idx * WQ_QUEUE_SIZE)); } static void @@ -235,7 +235,7 @@ workqueue_create(struct workqueue **wqp, const char *name, CTASSERT(sizeof(work_impl_t) <= sizeof(struct work)); ptr = kmem_zalloc(workqueue_size(flags), KM_SLEEP); - wq = (void *)roundup2((intptr_t)ptr, coherency_unit); + wq = (void *)roundup2((uintptr_t)ptr, coherency_unit); wq->wq_ptr = ptr; wq->wq_flags = flags; |
