aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorXiongfeng Wang <[email protected]>2018-01-09 12:23:32 +0000
committerJiri Kosina <[email protected]>2018-02-16 12:36:50 +0000
commit336fd4f5f25157e9e8bd50e898a1bbcd99eaea46 (patch)
tree5d3e78c6dd76eae8c5ed14e9f8716ea56a37ebbc /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parentHID: asus: make array 'buf' static const (diff)
downloadkernel-336fd4f5f25157e9e8bd50e898a1bbcd99eaea46.tar.gz
kernel-336fd4f5f25157e9e8bd50e898a1bbcd99eaea46.zip
HID: uhid: use strlcpy() instead of strncpy()
gcc-8 reports drivers/hid/uhid.c: In function 'uhid_dev_create2': ./include/linux/string.h:245:9: warning: '__builtin_strncpy' output may be truncated copying 127 bytes from a string of length 127 [-Wstringop-truncation] The compiler require that the input param 'len' of strncpy() should be greater than the length of the src string, so that '\0' is copied as well. We can just use strlcpy() to avoid this warning. Signed-off-by: Xiongfeng Wang <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions