drm/amd/pm: suppress static checker warning
Subsystems (3)
PATCH 1/1 drm/amd/pm: suppress static checker warning
Suppress the warning below:drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/hardwaremanager.c:274 phm_check_smc_update_required_for_display_configuration()
warn: signedness bug returning '(-22)'
--- drivers/gpu/drm/amd/pm/powerplay/hwmgr/hardwaremanager.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/hardwaremanager.c +4 -1
@@ -271,7 +271,10 @@ int phm_start_thermal_controller(struct pp_hwmgr *hwmgr)bool phm_check_smc_update_required_for_display_configuration (struct pp_hwmgr *hwmgr) { -PHM_FUNC_CHECK (hwmgr); +if (hwmgr ==NULL || + hwmgr->hwmgr_func ==NULL ) +return false; +if (hwmgr->pp_one_vf)return false;
Signature · 6 lines
2.28.0 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
[AMD Official Use Only - Internal Distribution Only]
________________________________
From: Quan, Evan <[email protected]>
Sent: Tuesday, August 25, 2020 11:32 PM
To: [email protected] <[email protected]>
Cc: Deucher, Alexander <[email protected]>; [email protected] <[email protected]>; Quan, Evan <[email protected]>
Subject: [PATCH] drm/amd/pm: suppress static checker warning
Suppress the warning below:drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/hardwaremanager.c:274 phm_check_smc_update_required_for_display_configuration()
warn: signedness bug returning '(-22)'
--- drivers/gpu/drm/amd/pm/powerplay/hwmgr/hardwaremanager.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/hardwaremanager.c +4 -1
@@ -271,7 +271,10 @@ int phm_start_thermal_controller(struct pp_hwmgr *hwmgr)bool phm_check_smc_update_required_for_display_configuration (struct pp_hwmgr *hwmgr) { -PHM_FUNC_CHECK (hwmgr); +if (hwmgr ==NULL || + hwmgr->hwmgr_func ==NULL ) +return false; +if (hwmgr->pp_one_vf)return false;
--
2.28.0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx