diff options
author | Jason Gunthorpe <[email protected]> | 2020-01-16 13:00:33 -0400 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2020-01-25 15:05:59 -0400 |
commit | b6bbee6889300372e8d84373de0afbd980155f90 (patch) | |
tree | 291f5d906bf2dfe2cde98b29f86daecc50ad9e2c /tools/perf/scripts/python/mem-phys-addr.py | |
parent | d05d4ac4c9316a2e2ea5be434a7f7a021ec44a3c (diff) |
RDMA/cm: Use IBA functions for simple get/set acessors
Use a Coccinelle spatch to replace CM helper functions with IBA_GET/SET
versions. Applied with
$ spatch --sp-file edits.sp --in-place drivers/infiniband/core/cm.c
The spatch file was generated using the template pattern:
@@
expression val;
{struct} *msg;
@@
- {old_setter}
+ IBA_SET({new_name}, msg, val)
@@
{struct} *msg;
@@
- {old_getter}
+ IBA_GET({new_name}, msg)
Iterated for every IBA_CHECK_GET()/IBA_CHECK_GET() pairing. Touched up
with clang-format after.
Link: https://lore.kernel.org/r/[email protected]
Tested-by: Leon Romanovsky <[email protected]>
Reviewed-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions