aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/net/lib/py/utils.py
diff options
context:
space:
mode:
authorAzeem Shaikh <[email protected]>2023-05-15 02:40:44 +0000
committerChuck Lever <[email protected]>2023-05-15 08:03:04 -0400
commit21a3f3328972bdb774c62b301a715b5cebf03fa2 (patch)
tree2da48ff2ce29aab67ef069a0eacd44ae414ef2fd /tools/testing/selftests/net/lib/py/utils.py
parent07a27305938559fb35f7a46fb90a5e37728bdee6 (diff)
NFSD: Remove open coding of string copy
Instead of open coding a __dynamic_array(), use the __string() and __assign_str() helper macros that exist for this kind of use case. Part of an effort to remove deprecated strlcpy() [1] completely from the kernel[2]. [1] https://www.kernel.org/doc/html/latest/process/deprecated.html#strlcpy [2] https://github.com/KSPP/linux/issues/89 Fixes: 3c92fba557c6 ("NFSD: Enhance the nfsd_cb_setup tracepoint") Signed-off-by: Azeem Shaikh <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Signed-off-by: Chuck Lever <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions