]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
RDMA/mlx5: Use offsetofend() instead of duplicated variant
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 10 Mar 2020 09:14:31 +0000 (11:14 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 13 Mar 2020 13:45:12 +0000 (10:45 -0300)
commita762d460a06abc8d462ac513ba57dc3c31dd8c73
tree46ac7f4cd8598b724225aa46f3141e9ef533f24d
parent282e79c1c61a119a8b41bf0c1d82a0ac7cc76488
RDMA/mlx5: Use offsetofend() instead of duplicated variant

Convert mlx5 driver to use offsetofend() instead of its duplicated
variant.

Link: https://lore.kernel.org/r/20200310091438.248429-5-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h