]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/rtrs-clt: Replace list_next_or_null_rr_rcu with an inline function
authorMd Haris Iqbal <haris.iqbal@ionos.com>
Tue, 12 Jul 2022 10:31:12 +0000 (12:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:23:55 +0000 (14:23 +0200)
commit106efc02d9daa1cdc91621f1d78cac1e36febe31
treee9e5674e3b4515a58bf6f633616694d8dd4c031d
parentcdfcc3f024311514075a58aeaba45d5dcd5d4dd5
RDMA/rtrs-clt: Replace list_next_or_null_rr_rcu with an inline function

[ Upstream commit 29cabcbbaf1c982feb32a77feddadb733c48acc7 ]

removes list_next_or_null_rr_rcu macro to fix below warnings.
That macro is used only twice.
CHECK:MACRO_ARG_REUSE: Macro argument reuse 'head' - possible side-effects?
CHECK:MACRO_ARG_REUSE: Macro argument reuse 'ptr' - possible side-effects?
CHECK:MACRO_ARG_REUSE: Macro argument reuse 'memb' - possible side-effects?

Replaces that macro with an inline function.

Fixes: af01783ea5ce ("RDMA/rtrs: client: main functionality")
Cc: jinpu.wang@ionos.com
Link: https://lore.kernel.org/r/20220712103113.617754-5-haris.iqbal@ionos.com
Signed-off-by: Md Haris Iqbal <haris.iqbal@ionos.com>
Suggested-by: Jason Gunthorpe <jgg@ziepe.ca>
Signed-off-by: Jack Wang <jinpu.wang@ionos.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/ulp/rtrs/rtrs-clt.c