Browse Source

RDMA/cxgb3: IDR IDs are signed

Fix sparse warnings about pointer signedness by using a signed int when
calling idr_get_new_above().

Signed-off-by: Roland Dreier <rolandd@cisco.com>
Acked-by: Steve Wise <swise@opengridcomputing.com>
Roland Dreier 17 years ago
parent
commit
edba846af9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/infiniband/hw/cxgb3/iwch.h

+ 1 - 1
drivers/infiniband/hw/cxgb3/iwch.h

@@ -147,7 +147,7 @@ static inline int insert_handle(struct iwch_dev *rhp, struct idr *idr,
 				void *handle, u32 id)
 {
 	int ret;
-	u32 newid;
+	int newid;
 
 	do {
 		if (!idr_pre_get(idr, GFP_KERNEL)) {