CC: [email protected]
CC: [email protected]
TO: Graham Sider <[email protected]>
CC: Alex Deucher <[email protected]>
CC: Harish Kasiviswanathan <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   c2c94b3b187dc92b2002809f489e0f24a41e91bc
commit: 410e302ea53f095f5d94dc14efefe8191bde901b drm/amdkfd: Update SMI 
throttle event bitmask
date:   6 months ago
:::::: branch date: 7 hours ago
:::::: commit date: 6 months ago
compiler: powerpc64-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/rtc/rtc-rv8803.c:80:0: warning: syntax error [syntaxError]
   
   ^
--
   In file included from drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_smi_events.c:
>> drivers/gpu/drm/amd/amdkfd/kfd_smi_events.c:224:8: warning: %llx in format 
>> string (no. 2) requires 'unsigned long long' but the argument type is 
>> 'unsigned long'. [invalidPrintfArgType_uint]
    len = snprintf(fifo_in, sizeof(fifo_in), "%x %llx:%llxn",
          ^
--
>> drivers/net/wireless/intersil/hostap/hostap_ap.c:2078:12: warning: Variable 
>> 'left' is modified but its new value is never used. [unreadVariable]
      left -= ileft;
              ^
>> drivers/net/wireless/intersil/hostap/hostap_ap.c:3231:2: warning: Address of 
>> local auto-variable assigned to a function parameter. [autoVariables]
    *crypt = &sta->crypt;
    ^

vim +224 drivers/gpu/drm/amd/amdkfd/kfd_smi_events.c

55977744f9d862 Mukul Joshi  2020-08-28  206  
2c2b0d880f1b4c Mukul Joshi  2020-07-23  207  void 
kfd_smi_event_update_thermal_throttling(struct kfd_dev *dev,
410e302ea53f09 Graham Sider 2021-07-06  208                                     
     uint64_t throttle_bitmask)
2c2b0d880f1b4c Mukul Joshi  2020-07-23  209  {
2c2b0d880f1b4c Mukul Joshi  2020-07-23  210     struct amdgpu_device *adev = 
(struct amdgpu_device *)dev->kgd;
2c2b0d880f1b4c Mukul Joshi  2020-07-23  211     /*
2c2b0d880f1b4c Mukul Joshi  2020-07-23  212      * ThermalThrottle msg = 
throttle_bitmask(8):
2c2b0d880f1b4c Mukul Joshi  2020-07-23  213      *                       
thermal_interrupt_count(16):
410e302ea53f09 Graham Sider 2021-07-06  214      * 1 byte event + 1 byte space 
+ 16 byte throttle_bitmask +
2c2b0d880f1b4c Mukul Joshi  2020-07-23  215      * 1 byte : + 16 byte 
thermal_interupt_counter + 1 byte \n +
410e302ea53f09 Graham Sider 2021-07-06  216      * 1 byte \0 = 37
2c2b0d880f1b4c Mukul Joshi  2020-07-23  217      */
410e302ea53f09 Graham Sider 2021-07-06  218     char fifo_in[37];
2c2b0d880f1b4c Mukul Joshi  2020-07-23  219     int len;
2c2b0d880f1b4c Mukul Joshi  2020-07-23  220  
2c2b0d880f1b4c Mukul Joshi  2020-07-23  221     if 
(list_empty(&dev->smi_clients))
2c2b0d880f1b4c Mukul Joshi  2020-07-23  222             return;
2c2b0d880f1b4c Mukul Joshi  2020-07-23  223  
410e302ea53f09 Graham Sider 2021-07-06 @224     len = snprintf(fifo_in, 
sizeof(fifo_in), "%x %llx:%llx\n",
2c2b0d880f1b4c Mukul Joshi  2020-07-23  225                    
KFD_SMI_EVENT_THERMAL_THROTTLE, throttle_bitmask,
2c2b0d880f1b4c Mukul Joshi  2020-07-23  226                    
atomic64_read(&adev->smu.throttle_int_counter));
2c2b0d880f1b4c Mukul Joshi  2020-07-23  227  
2c2b0d880f1b4c Mukul Joshi  2020-07-23  228     add_event_to_kfifo(dev, 
KFD_SMI_EVENT_THERMAL_THROTTLE, fifo_in, len);
2c2b0d880f1b4c Mukul Joshi  2020-07-23  229  }
2c2b0d880f1b4c Mukul Joshi  2020-07-23  230  

---
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