linux/drivers/infiniband/ulp
Danil Kipnis a94dae867c RDMA/rtrs: Get rid of the do_next_path while_next_path macros
The macros do_each_path/while_each_path lead to a smatch warning:

drivers/infiniband/ulp/rtrs/rtrs-clt.c:1196 rtrs_clt_failover_req() warn: inconsistent indenting
drivers/infiniband/ulp/rtrs/rtrs-clt.c:2890 rtrs_clt_request() warn: inconsistent indenting

Also checkpatch complains:
ERROR: Macros with multiple statements should be enclosed in a do - while loop

The macros are used only in two places: for a normal IO path and for the
failover path triggered after errors.

Get rid of the macros and just use a for loop iterating over the list of
paths in both places. It is easier to read and also less lines of code.

Fixes: 6a98d71dae ("RDMA/rtrs: client: main functionality")
Link: https://lore.kernel.org/r/20200522053924.528980-1-danil.kipnis@cloud.ionos.com
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Danil Kipnis <danil.kipnis@cloud.ionos.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2020-05-22 15:50:22 -03:00
..
ipoib IB/ipoib: Add capability to switch between datagram and connected mode 2020-05-21 11:23:57 -03:00
iser IB/iser: Always check sig MR before putting it to the free pool 2020-03-26 16:46:54 -03:00
isert scsi: Revert "RDMA/isert: Fix a recently introduced regression related to logout" 2020-02-14 17:13:53 -05:00
opa_vnic RDMA: Allow ib_client's to fail when add() is called 2020-05-06 11:57:33 -03:00
rtrs RDMA/rtrs: Get rid of the do_next_path while_next_path macros 2020-05-22 15:50:22 -03:00
srp RDMA: Allow ib_client's to fail when add() is called 2020-05-06 11:57:33 -03:00
srpt RDMA/srpt: Fix disabling device management 2020-05-17 20:43:19 -03:00
Makefile RDMA/rtrs: include client and server modules into kernel compilation 2020-05-17 18:57:15 -03:00