diff options
author | Azeem Shaikh <azeemshaikh38@gmail.com> | 2023-05-15 02:40:44 +0000 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2023-05-15 08:03:04 -0400 |
commit | 21a3f3328972bdb774c62b301a715b5cebf03fa2 (patch) | |
tree | 2da48ff2ce29aab67ef069a0eacd44ae414ef2fd /Documentation/driver-model/devres.txt | |
parent | 07a27305938559fb35f7a46fb90a5e37728bdee6 (diff) | |
download | linux-21a3f3328972bdb774c62b301a715b5cebf03fa2.tar.gz |
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 'Documentation/driver-model/devres.txt')
0 files changed, 0 insertions, 0 deletions