Reviewed-by: Rex Zhu <[email protected]> and pushed the patch to drm-next.
Best Regards Rex From: amd-gfx [mailto:[email protected]] On Behalf Of Deucher, Alexander Sent: Friday, January 05, 2018 12:09 AM To: Wentland, Harry; [email protected]; Tao, Yintian Subject: Re: [PATCH] drm/amd/powerplay: Fix no-cast warnings in smu7_smu_fini Acked-by: Alex Deucher <[email protected]<mailto:[email protected]>> ________________________________ From: amd-gfx <[email protected]<mailto:[email protected]>> on behalf of Harry Wentland <[email protected]<mailto:[email protected]>> Sent: Thursday, January 4, 2018 11:01 AM To: [email protected]<mailto:[email protected]>; Tao, Yintian Cc: Wentland, Harry Subject: [PATCH] drm/amd/powerplay: Fix no-cast warnings in smu7_smu_fini This fixes these warnings: drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/smu7_smumgr.c: In function 'smu7_smu_fini': drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/smu7_smumgr.c:653:33: warning: passing argument 2 of 'smu_free_memory' makes pointer from integer without a cast [-Wint-conversion] smu_free_memory(hwmgr->device, smu_data->header_buffer.handle); ^~~~~~~~ In file included from drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/smu7_smumgr.c:26:0: drivers/gpu/drm/amd/amdgpu/../powerplay/inc/smumgr.h:114:12: note: expected 'void *' but argument is of type 'long unsigned int' extern int smu_free_memory(void *device, void *handle); ^~~~~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/smu7_smumgr.c:655:34: warning: passing argument 2 of 'smu_free_memory' makes pointer from integer without a cast [-Wint-conversion] smu_free_memory(hwmgr->device, smu_data->smu_buffer.handle); ^~~~~~~~ In file included from drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/smu7_smumgr.c:26:0: drivers/gpu/drm/amd/amdgpu/../powerplay/inc/smumgr.h:114:12: note: expected 'void *' but argument is of type 'long unsigned int' extern int smu_free_memory(void *device, void *handle); ^~~~~~~~~~~~~~~ Signed-off-by: Harry Wentland <[email protected]<mailto:[email protected]>> --- drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c b/drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c index 25dd7781c9f2..311ff3718618 100644 --- a/drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c +++ b/drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c @@ -650,9 +650,9 @@ int smu7_smu_fini(struct pp_hwmgr *hwmgr) { struct smu7_smumgr *smu_data = (struct smu7_smumgr *)(hwmgr->smu_backend); - smu_free_memory(hwmgr->device, smu_data->header_buffer.handle); + smu_free_memory(hwmgr->device, (void *) smu_data->header_buffer.handle); if (!cgs_is_virtualization_enabled(hwmgr->device)) - smu_free_memory(hwmgr->device, smu_data->smu_buffer.handle); + smu_free_memory(hwmgr->device, (void *) smu_data->smu_buffer.handle); kfree(hwmgr->smu_backend); hwmgr->smu_backend = NULL; -- 2.14.1 _______________________________________________ amd-gfx mailing list [email protected]<mailto:[email protected]> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
