projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edba846
)
IB: Make struct ib_uobject.id a signed int
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)
IDR IDs are signed, so struct ib_uobject.id should be signed. This
avoids some sparse pointer signedness warnings.
Signed-off-by: Roland Dreier <rolandd@cisco.com>
include/rdma/ib_verbs.h
patch
|
blob
|
blame
|
history
diff --git
a/include/rdma/ib_verbs.h
b/include/rdma/ib_verbs.h
index 701e7b40560ae8b4e0ff83af131d88592b143eef..40ff51244d190d9530fcd8f2df68605690f10ec3 100644
(file)
--- 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;