diff options
author | Azeem Shaikh <azeemshaikh38@gmail.com> | 2023-05-15 04:40:44 +0200 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2023-05-15 14:03:04 +0200 |
commit | 21a3f3328972bdb774c62b301a715b5cebf03fa2 (patch) | |
tree | 2da48ff2ce29aab67ef069a0eacd44ae414ef2fd /include | |
parent | SUNRPC: Fix trace_svc_register() call site (diff) | |
download | linux-21a3f3328972bdb774c62b301a715b5cebf03fa2.tar.xz linux-21a3f3328972bdb774c62b301a715b5cebf03fa2.zip |
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 <azeemshaikh38@gmail.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions