summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorKevin Paul Reddy Janagari <kevinpaul468@gmail.com>2025-04-11 14:20:10 +0530
committerPaolo Abeni <pabeni@redhat.com>2025-04-15 13:37:14 +0200
commit8c9b406ff470a8346232eec979dc84f518aabfd9 (patch)
tree0f4475ef2f78d4fc2c02c1ea5351569529a0d36b /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parent4c2e0b00b51f2e4647d3285910ed28ab703dab1a (diff)
tipc: Removing deprecated strncpy()
This patch suggests the replacement of strncpy with strscpy as per Documentation/process/deprecated. The strncpy() fails to guarantee NULL termination, The function adds zero pads which isn't really convenient for short strings as it may cause performance issues. strscpy() is a preferred replacement because it overcomes the limitations of strncpy mentioned above. Compile Tested Signed-off-by: Kevin Paul Reddy Janagari <kevinpaul468@gmail.com> Reviewed-by: Tung Nguyen <tung.quang.nguyen@est.tech> Tested-by: Tung Nguyen <tung.quang.nguyen@est.tech> Link: https://patch.msgid.link/20250411085010.6249-1-kevinpaul468@gmail.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions