From: Roland Dreier Date: Thu, 17 Apr 2008 04:01:06 +0000 (-0700) Subject: IB: Make struct ib_uobject.id a signed int X-Git-Tag: v2.6.26-rc1~1156^2~98 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3d636b0d1b2eb870a55ae196b8f3838e1399554;p=linux-2.6 IB: Make struct ib_uobject.id a signed int IDR IDs are signed, so struct ib_uobject.id should be signed. This avoids some sparse pointer signedness warnings. Signed-off-by: Roland Dreier --- diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index 701e7b4056..40ff51244d 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h @@ -730,7 +730,7 @@ struct ib_uobject { struct ib_ucontext *context; /* associated user context */ void *object; /* containing object */ struct list_head list; /* link to context's list */ - u32 id; /* index into kernel idr */ + int id; /* index into kernel idr */ struct kref ref; struct rw_semaphore mutex; /* protects .live */ int live;