linux/drivers/infiniband/hw
Artemy Kovalyov 3e7e1193e2 IB: Replace ib_umem page_size by page_shift
Size of pages are held by struct ib_umem in page_size field.

It is better to store it as an exponent, because page size by nature
is always power-of-two and used as a factor, divisor or ilog2's argument.

The conversion of page_size to be page_shift allows to have portable
code and avoid following error while compiling on ARM:

  ERROR: "__aeabi_uldivmod" [drivers/infiniband/core/ib_core.ko] undefined!

CC: Selvin Xavier <selvin.xavier@broadcom.com>
CC: Steve Wise <swise@chelsio.com>
CC: Lijun Ou <oulijun@huawei.com>
CC: Shiraz Saleem <shiraz.saleem@intel.com>
CC: Adit Ranadive <aditr@vmware.com>
CC: Dennis Dalessandro <dennis.dalessandro@intel.com>
CC: Ram Amrani <Ram.Amrani@Cavium.com>
Signed-off-by: Artemy Kovalyov <artemyko@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Acked-by: Ram Amrani <Ram.Amrani@cavium.com>
Acked-by: Shiraz Saleem <shiraz.saleem@intel.com>
Acked-by: Selvin Xavier <selvin.xavier@broadcom.com>
Acked-by: Selvin Xavier <selvin.xavier@broadcom.com>
Acked-by: Adit Ranadive <aditr@vmware.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2017-04-25 15:40:28 -04:00
..
bnxt_re IB: Replace ib_umem page_size by page_shift 2017-04-25 15:40:28 -04:00
cxgb3 IB: Replace ib_umem page_size by page_shift 2017-04-25 15:40:28 -04:00
cxgb4 IB: Replace ib_umem page_size by page_shift 2017-04-25 15:40:28 -04:00
hfi1 IB/hfi: Fix up comments in engine mapping 2017-04-25 15:24:51 -04:00
hns IB: Replace ib_umem page_size by page_shift 2017-04-25 15:40:28 -04:00
i40iw IB: Replace ib_umem page_size by page_shift 2017-04-25 15:40:28 -04:00
mlx4 IB: Replace ib_umem page_size by page_shift 2017-04-25 15:40:28 -04:00
mlx5 IB: Replace ib_umem page_size by page_shift 2017-04-25 15:40:28 -04:00
mthca IB: Replace ib_umem page_size by page_shift 2017-04-25 15:40:28 -04:00
nes IB: Replace ib_umem page_size by page_shift 2017-04-25 15:40:28 -04:00
ocrdma IB: Replace ib_umem page_size by page_shift 2017-04-25 15:40:28 -04:00
qedr IB: Replace ib_umem page_size by page_shift 2017-04-25 15:40:28 -04:00
qib Merge branch 'k.o/for-4.12' into k.o/for-4.12-rdma-netdevice 2017-04-20 12:00:41 -04:00
usnic {net,IB}/{rxe,usnic}: Utilize generic mac to eui32 function 2017-04-25 14:21:34 -04:00
vmw_pvrdma IB: Replace ib_umem page_size by page_shift 2017-04-25 15:40:28 -04:00
Makefile RDMA/bnxt_re: Add bnxt_re driver build support 2017-02-14 09:51:28 -05:00