projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b29043
)
RDMA/cxgb3: IDR IDs are signed
author
Roland Dreier
<rolandd@cisco.com>
Thu, 17 Apr 2008 04:01:06 +0000
(21:01 -0700)
committer
Roland Dreier
<rolandd@cisco.com>
Thu, 17 Apr 2008 04:01:06 +0000
(21:01 -0700)
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>
drivers/infiniband/hw/cxgb3/iwch.h
patch
|
blob
|
blame
|
history
diff --git
a/drivers/infiniband/hw/cxgb3/iwch.h
b/drivers/infiniband/hw/cxgb3/iwch.h
index caf4e6007a44cc4aef2e47c08f2ebb5c0db4e875..9ad9b1e7c8c1cced39eda9ead95d85e498018a03 100644
(file)
--- a/
drivers/infiniband/hw/cxgb3/iwch.h
+++ b/
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)) {