From 38d7b7ba2ea200f67edcb42e58d4d559fdbf9a7b Mon Sep 17 00:00:00 2001 From: rmind Date: Mon, 15 Sep 2008 10:43:29 +0000 Subject: Replace intptr_t in few places to uintptr_t. --- sys/kern/subr_workqueue.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys') 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 -__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 #include @@ -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; -- cgit