Re: [PATCH] IB/core: Use sizeof_field() helper

2020-05-27 Thread Gustavo A. R. Silva
On Wed, May 27, 2020 at 01:44:52PM -0300, Jason Gunthorpe wrote: > On Wed, May 27, 2020 at 09:41:52AM -0500, Gustavo A. R. Silva wrote: > > Make use of the sizeof_field() helper instead of an open-coded version. > > > > Signed-off-by: Gustavo A. R. Silva > > --- > >

Re: [PATCH] IB/core: Use sizeof_field() helper

2020-05-27 Thread Jason Gunthorpe
On Wed, May 27, 2020 at 09:41:52AM -0500, Gustavo A. R. Silva wrote: > Make use of the sizeof_field() helper instead of an open-coded version. > > Signed-off-by: Gustavo A. R. Silva > --- > drivers/infiniband/core/sa_query.c | 8 > drivers/infiniband/core/uverbs_cmd.c | 2 +- >

[PATCH] IB/core: Use sizeof_field() helper

2020-05-27 Thread Gustavo A. R. Silva
Make use of the sizeof_field() helper instead of an open-coded version. Signed-off-by: Gustavo A. R. Silva --- drivers/infiniband/core/sa_query.c | 8 drivers/infiniband/core/uverbs_cmd.c | 2 +- drivers/infiniband/core/uverbs_ioctl.c | 2 +- 3 files changed, 6 insertions(+), 6