diff options
| author | Jason Gunthorpe <jgg@nvidia.com> | 2026-05-11 21:09:32 -0300 |
|---|---|---|
| committer | Leon Romanovsky <leon@kernel.org> | 2026-05-18 04:58:42 -0400 |
| commit | a5e9f0ae620f58b6f6fa4ee00accaac523cb1a72 (patch) | |
| tree | b682df872c9fad2a1e9b5b4dc5ca3bd4c1fcf27f /scripts | |
| parent | 9ebad5c3ebc77cfc4611f7ed60ea5abcb555d3a8 (diff) | |
RDMA: Convert drivers using min to ib_respond_udata()
Convert the pattern:
ib_copy_to_udata(udata, &resp, min(sizeof(resp), udata->outlen));
Using Coccinelle:
@@
identifier resp;
expression udata;
@@
- ib_copy_to_udata(udata, &resp, min(sizeof(resp), udata->outlen))
+ ib_respond_udata(udata, resp)
@@
identifier resp;
expression udata;
@@
- ib_copy_to_udata(udata, &resp, min(udata->outlen, sizeof(resp)))
+ ib_respond_udata(udata, resp)
Run another pass with AI to propagate the return code correctly and
remove redundant prints.
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
