1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/pm
Srinivasan Shanmugam d1090194cb drm/amd/pm: Fixes incorrect type in 'amdgpu_hwmon_show_power_avg() & _input()'
The val is defined as unsigned int type, if(val<0) is invalid, hence
modified its type to ssize_t

Fixes the below:

drivers/gpu/drm/amd/pm/amdgpu_pm.c:2800:5-8: WARNING: Unsigned expression compared with zero: val < 0
drivers/gpu/drm/amd/pm/amdgpu_pm.c:2813:5-8: WARNING: Unsigned expression compared with zero: val < 0

Cc: Guchun Chen <guchun.chen@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: "Pan, Xinhui" <Xinhui.Pan@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reviewed-by: Asad Kamal <asad.kamal@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2023-08-30 15:20:48 -04:00
..
inc drm/amdgpu: open brace '{' following struct go on the same line 2023-07-25 13:44:00 -04:00
legacy-dpm drm/amd/pm: Clean up errors in sislands_smc.h 2023-08-09 09:42:44 -04:00
powerplay drm/amd: Rename AMDGPU_PP_SENSOR_GPU_POWER 2023-08-15 18:08:30 -04:00
swsmu drm/amd/pm: Fix critical temp unit of SMU v13.0.6 2023-08-30 14:59:40 -04:00
amdgpu_dpm.c drm/amd/pm: avoid potential UBSAN issue on legacy asics 2023-06-09 09:36:34 -04:00
amdgpu_dpm_internal.c drm/amd/pm: add missing prototypes to amdgpu_dpm_internal 2022-02-07 18:03:50 -05:00
amdgpu_pm.c drm/amd/pm: Fixes incorrect type in 'amdgpu_hwmon_show_power_avg() & _input()' 2023-08-30 15:20:48 -04:00
Makefile drm/amd/pm: relocate the power related headers 2022-01-14 17:51:14 -05:00