diff options
| author | Damien Le Moal <[email protected]> | 2020-07-16 04:38:14 +0000 |
|---|---|---|
| committer | Mike Snitzer <[email protected]> | 2020-08-04 19:50:58 +0000 |
| commit | 1aeb6e7cd118b90f1a227c79b26100af6a15960e (patch) | |
| tree | 9b2aadff0d0d39273895a3c3b00319ec8bfa1c66 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | |
| parent | dm raid: Remove empty if statement (diff) | |
| download | kernel-1aeb6e7cd118b90f1a227c79b26100af6a15960e.tar.gz kernel-1aeb6e7cd118b90f1a227c79b26100af6a15960e.zip | |
dm ioctl: Fix compilation warning
In retrieve_status(), when copying the target type name in the
target_type string field of struct dm_target_spec, copy at most
DM_MAX_TYPE_NAME - 1 character to avoid the compilation warning:
warning: ‘__builtin_strncpy’ specified bound 16 equals destination
size [-Wstringop-truncation]
when compiling with W-1.
Signed-off-by: Damien Le Moal <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions
