mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
RDMA/umem: Fix signature of stub ib_umem_find_best_pgsz()
The original function returns unsigned long and 0 on failure.
Fixes: 4a35339958
("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>
This commit is contained in:
parent
5d985d724b
commit
61690d01db
1 changed files with 5 additions and 4 deletions
|
@ -68,10 +68,11 @@ static inline int ib_umem_copy_from(void *dst, struct ib_umem *umem, size_t offs
|
||||||
size_t length) {
|
size_t length) {
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
static inline int ib_umem_find_best_pgsz(struct ib_umem *umem,
|
static inline unsigned long ib_umem_find_best_pgsz(struct ib_umem *umem,
|
||||||
unsigned long pgsz_bitmap,
|
unsigned long pgsz_bitmap,
|
||||||
unsigned long virt) {
|
unsigned long virt)
|
||||||
return -EINVAL;
|
{
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* CONFIG_INFINIBAND_USER_MEM */
|
#endif /* CONFIG_INFINIBAND_USER_MEM */
|
||||||
|
|
Loading…
Add table
Reference in a new issue