diff options
| author | Jason Gunthorpe <jgg@nvidia.com> | 2026-06-01 13:52:33 -0300 |
|---|---|---|
| committer | Jason Gunthorpe <jgg@nvidia.com> | 2026-06-05 12:36:33 -0300 |
| commit | 55d984dae65262fbb0a673cff7cc9824a5e19bdb (patch) | |
| tree | a855508fd303c95f95f35a1242aea5c93ae7d7be /kernel/resource_kunit.c | |
| parent | 09ea6837a0434fb4db99528a5055b6d822135dcf (diff) | |
| download | lwn-55d984dae65262fbb0a673cff7cc9824a5e19bdb.tar.gz lwn-55d984dae65262fbb0a673cff7cc9824a5e19bdb.zip | |
RDMA/umem: Make ib_umem_is_contiguous() safe on 32 bit
Sashiko points out the roundup_pow_of_two() only uses unsigned long but
dma_addr_t can be u64.
Change this algorithm to be simpler, compute the page size, if any page
size is found and it results in a single block then it is contiguous.
Link: https://patch.msgid.link/r/3-v1-88303e9e509f+f7-ib_umem_types_jgg@nvidia.com
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'kernel/resource_kunit.c')
0 files changed, 0 insertions, 0 deletions
