projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d985d7
)
RDMA/umem: Fix signature of stub ib_umem_find_best_pgsz()
author
Jason Gunthorpe
<jgg@nvidia.com>
Tue, 25 Aug 2020 18:17:08 +0000
(15:17 -0300)
committer
Jason Gunthorpe
<jgg@nvidia.com>
Mon, 31 Aug 2020 15:15:10 +0000
(12:15 -0300)
The original function returns unsigned long and 0 on failure.
Fixes: 4a35339958f1 ("RDMA/umem: Add API to find best driver supported page size in an MR")
Link:
https://lore.kernel.org/r/0-v1-982a13cc5c6d+501ae-fix_best_pgsz_stub_jgg@nvidia.com
Reviewed-by: Gal Pressman <galpress@amazon.com>
Acked-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
include/rdma/ib_umem.h
patch
|
blob
|
history
diff --git
a/include/rdma/ib_umem.h
b/include/rdma/ib_umem.h
index 71f573a418bf06ddef0bf5468dc680239c0cf3ff..07a764eb692eede9de8053f63484f4f6b6e3f564 100644
(file)
--- a/
include/rdma/ib_umem.h
+++ b/
include/rdma/ib_umem.h
@@
-68,10
+68,11
@@
static inline int ib_umem_copy_from(void *dst, struct ib_umem *umem, size_t offs
size_t length) {
return -EINVAL;
}
-static inline int ib_umem_find_best_pgsz(struct ib_umem *umem,
- unsigned long pgsz_bitmap,
- unsigned long virt) {
- return -EINVAL;
+static inline unsigned long ib_umem_find_best_pgsz(struct ib_umem *umem,
+ unsigned long pgsz_bitmap,
+ unsigned long virt)
+{
+ return 0;
}
#endif /* CONFIG_INFINIBAND_USER_MEM */