Re: [PATCH] drm/amd/pm: Fix unsigned expression compared with zero

2023-08-18 Thread Alex Deucher
On Thu, Aug 17, 2023 at 2:07 AM Jiapeng Chong wrote: > > The val is defined as unsigned int type, if(val<0) is invalid, modify > to int type. > > drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c:2813 > amdgpu_hwmon_show_power_input() warn: unsigned 'val' is never less than zero. > drivers/gpu/drm/amd

[PATCH] drm/amd/pm: Fix unsigned expression compared with zero

2023-08-16 Thread Jiapeng Chong
The val is defined as unsigned int type, if(val<0) is invalid, modify to int type. drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c:2813 amdgpu_hwmon_show_power_input() warn: unsigned 'val' is never less than zero. drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c:2800 amdgpu_hwmon_show_power_avg() warn: