]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RDMA: Consolidate patterns with offsetof() to ib_copy_validate_udata_in()
authorJason Gunthorpe <jgg@nvidia.com>
Wed, 25 Mar 2026 21:26:48 +0000 (18:26 -0300)
committerLeon Romanovsky <leonro@nvidia.com>
Tue, 31 Mar 2026 07:11:01 +0000 (03:11 -0400)
commit8d7573b194021b0b2baee9a8c563af488be733be
tree6357cb9c1718f9c3b71b78d94ac888f71029ee2e
parentae638288b2026224ab56c18b980935b4f2dfd8d0
RDMA: Consolidate patterns with offsetof() to ib_copy_validate_udata_in()

Similar to the prior patch, these patterns are open coding an
offsetofend(). The use of offsetof() targets the prior field as the
last field in the struct.

Reviewed-by: Long Li <longli@microsoft.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
drivers/infiniband/hw/mana/cq.c
drivers/infiniband/hw/mlx5/cq.c