tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   fececd1b5c375bdddf4d510fb52d7d823678c082
commit: 222fbf72c1c90668e43d313dd84c1390d72cbf80 [892/896] drm/amd/powerplay: 
fix typo error for '3be7be08ac'
config: x86_64-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025
reproduce:
        git checkout 222fbf72c1c90668e43d313dd84c1390d72cbf80
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   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);
               ^~~~~~~~~~~~~~~

vim +/smu_free_memory +653 
drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/smu7_smumgr.c

1ff55f46 Rex Zhu     2016-08-19  647  
1ff55f46 Rex Zhu     2016-08-19  648  
d3f8c0ab Rex Zhu     2017-09-20  649  int smu7_smu_fini(struct pp_hwmgr *hwmgr)
1ff55f46 Rex Zhu     2016-08-19  650  {
222fbf72 Yintian Tao 2018-01-04  651    struct smu7_smumgr *smu_data = (struct 
smu7_smumgr *)(hwmgr->smu_backend);
3be7be08 Yintian Tao 2018-01-04  652  
3be7be08 Yintian Tao 2018-01-04 @653    smu_free_memory(hwmgr->device, 
smu_data->header_buffer.handle);

:::::: The code at line 653 was first introduced by commit
:::::: 3be7be08acd52a9cefb6b8836aaaecd15f56abf0 drm/amd/powerplay: fix memory 
leakage when reload

:::::: TO: Yintian Tao <yt...@amd.com>
:::::: CC: Gerrit Cr <gerrit...@amd.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reply via email to