diff options
| author | Srinivasan Shanmugam <[email protected]> | 2023-07-23 06:59:14 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-07-25 17:47:26 +0000 |
| commit | a0cc8e1512ad72c9f97cdcb76d42715730adaf62 (patch) | |
| tree | b24ade3dc4e93b130d48ac118e5adf569cc751d2 /drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c | |
| parent | drm/amdgpu: Remove else after return in 'is_fru_eeprom_supported' (diff) | |
| download | kernel-a0cc8e1512ad72c9f97cdcb76d42715730adaf62.tar.gz kernel-a0cc8e1512ad72c9f97cdcb76d42715730adaf62.zip | |
drm/amdgpu: Update min() to min_t() in 'amdgpu_info_ioctl'
Fixes the following:
WARNING: min() should probably be min_t(size_t, size, sizeof(ip))
+ ret = copy_to_user(out, &ip, min((size_t)size, sizeof(ip)));
And other style fixes:
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
WARNING: Missing a blank line after declarations
Cc: Christian König <[email protected]>
Cc: Alex Deucher <[email protected]>
Signed-off-by: Srinivasan Shanmugam <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c')
0 files changed, 0 insertions, 0 deletions
