CC: [email protected]
CC: [email protected]
TO: Dennis Li <[email protected]>
CC: Alex Deucher <[email protected]>
CC: Hawking Zhang <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   1d1df41c5a33359a00e919d54eaebfb789711fdc
commit: 0e0036c7d13b945260ff1ce8377eca7ea877c008 drm/amdgpu: fix no full 
coverage issue for gprs initialization
date:   9 months ago
:::::: branch date: 27 hours ago
:::::: commit date: 9 months ago
compiler: sparc64-linux-gcc (GCC) 11.2.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>


cppcheck possible warnings: (new ones prefixed by >>, may not real problems)

>> drivers/message/fusion/mptbase.c:2888:3: warning: Variable 'i' is modified 
>> but its new value is never used. [unreadVariable]
     i++;
     ^
>> drivers/message/fusion/mptctl.c:1204:3: warning: Variable 'n' is modified 
>> but its new value is never used. [unreadVariable]
     n++;
     ^
>> drivers/scsi/pm8001/pm80xx_hwi.c:4843:58: warning: Same expression on both 
>> sides of '&'. [knownConditionTrueFalse]
    payload.dtype_dlr_mcn_ir_retry = cpu_to_le32((retryFlag & 0x01) |
                                                            ^
   drivers/scsi/pm8001/pm80xx_hwi.c:4803:17: note: 'retryFlag' is assigned 
value '1' here.
    u8 retryFlag = 0x1;
                   ^
   drivers/scsi/pm8001/pm80xx_hwi.c:4843:58: note: Same expression on both 
sides of '&'.
    payload.dtype_dlr_mcn_ir_retry = cpu_to_le32((retryFlag & 0x01) |
                                                            ^

vim +428 drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c

0e0036c7d13b94 Dennis Li 2021-04-27  411  
0e0036c7d13b94 Dennis Li 2021-04-27  412  static void 
gfx_v9_4_2_log_wave_assignment(struct amdgpu_device *adev, uint32_t *wb_ptr)
0e0036c7d13b94 Dennis Li 2021-04-27  413  {
0e0036c7d13b94 Dennis Li 2021-04-27  414        uint32_t se, cu, simd, wave;
0e0036c7d13b94 Dennis Li 2021-04-27  415        uint32_t offset = 0;
0e0036c7d13b94 Dennis Li 2021-04-27  416        char *str;
0e0036c7d13b94 Dennis Li 2021-04-27  417        int size;
0e0036c7d13b94 Dennis Li 2021-04-27  418  
0e0036c7d13b94 Dennis Li 2021-04-27  419        str = kmalloc(256, GFP_KERNEL);
0e0036c7d13b94 Dennis Li 2021-04-27  420        if (!str)
0e0036c7d13b94 Dennis Li 2021-04-27  421                return;
0e0036c7d13b94 Dennis Li 2021-04-27  422  
0e0036c7d13b94 Dennis Li 2021-04-27  423        dev_dbg(adev->dev, "wave 
assignment:\n");
0e0036c7d13b94 Dennis Li 2021-04-27  424  
0e0036c7d13b94 Dennis Li 2021-04-27  425        for (se = 0; se < 
adev->gfx.config.max_shader_engines; se++) {
0e0036c7d13b94 Dennis Li 2021-04-27  426                for (cu = 0; cu < 
CU_ID_MAX; cu++) {
0e0036c7d13b94 Dennis Li 2021-04-27  427                        memset(str, 0, 
256);
0e0036c7d13b94 Dennis Li 2021-04-27 @428                        size = 
sprintf(str, "SE[%02d]CU[%02d]: ", se, cu);
0e0036c7d13b94 Dennis Li 2021-04-27  429                        for (simd = 0; 
simd < SIMD_ID_MAX; simd++) {
0e0036c7d13b94 Dennis Li 2021-04-27  430                                size += 
sprintf(str + size, "[");
0e0036c7d13b94 Dennis Li 2021-04-27  431                                for 
(wave = 0; wave < WAVE_ID_MAX; wave++) {
0e0036c7d13b94 Dennis Li 2021-04-27  432                                        
size += sprintf(str + size, "%x", wb_ptr[offset]);
0e0036c7d13b94 Dennis Li 2021-04-27  433                                        
offset++;
0e0036c7d13b94 Dennis Li 2021-04-27  434                                }
0e0036c7d13b94 Dennis Li 2021-04-27  435                                size += 
sprintf(str + size, "]  ");
0e0036c7d13b94 Dennis Li 2021-04-27  436                        }
0e0036c7d13b94 Dennis Li 2021-04-27  437                        
dev_dbg(adev->dev, "%s\n", str);
0e0036c7d13b94 Dennis Li 2021-04-27  438                }
0e0036c7d13b94 Dennis Li 2021-04-27  439        }
0e0036c7d13b94 Dennis Li 2021-04-27  440  
0e0036c7d13b94 Dennis Li 2021-04-27  441        kfree(str);
0e0036c7d13b94 Dennis Li 2021-04-27  442  }
0e0036c7d13b94 Dennis Li 2021-04-27  443  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]
_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to