diff options
| author | 2022-07-12 12:31:12 +0200 | |
|---|---|---|
| committer | 2022-07-18 12:27:55 +0300 | |
| commit | c14adff285ad1bb8eefc5d8fc202ceb1f7e3a2f1 (patch) | |
| tree | ee98ea4564dc831cd583260fa04cf86444e2fd4e /include/uapi/git:/ssh:/git@git.zx2c4.com | |
| parent | RDMA/rtrs-srv: Use per-cpu variables for rdma stats (diff) | |
| download | linux-dev-c14adff285ad1bb8eefc5d8fc202ceb1f7e3a2f1.tar.xz linux-dev-c14adff285ad1bb8eefc5d8fc202ceb1f7e3a2f1.zip | |
RDMA/rtrs-clt: Replace list_next_or_null_rr_rcu with an inline function
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: 6a98d71daea1 ("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>
Diffstat (limited to 'include/uapi/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
