aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx5/mr.c
diff options
context:
space:
mode:
authorMoshe Lazer <moshel@mellanox.com>2013-07-10 14:31:03 +0300
committerRoland Dreier <roland@purestorage.com>2013-07-11 16:45:08 -0700
commit288dde9f23b6726c1e8147bf635721372bf77b16 (patch)
tree93867e6ea58c82b182c073b1b17e1e4a12b65762 /drivers/infiniband/hw/mlx5/mr.c
parentmlx5_core: Fixes for sparse warnings (diff)
downloadlinux-dev-288dde9f23b6726c1e8147bf635721372bf77b16.tar.xz
linux-dev-288dde9f23b6726c1e8147bf635721372bf77b16.zip
mlx5_core: Adjust hca_cap.uar_page_sz to conform to Connect-IB spec
Sparse reported an endianness bug in the assignment to hca_cap.uar_page_sz. Fix the declaration of this field to be __be16 (which is what is in the firmware spec), renaming the field to log_uar_pg_size to conform to the spec, which fixes the endianness bug reported by sparse. Reported-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Moshe Lazer <moshel@mellanox.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/mr.c')
0 files changed, 0 insertions, 0 deletions