tree:   https://gitlab.freedesktop.org/drm/misc/kernel.git for-linux-next
head:   c1079aebb4de218caa86c44f9a53700d1a582683
commit: 42577ba79fbfbc6c2f246d523cb22a66329d4826 [3/5] drm/imagination: Rename 
FW booted to FW initialised
config: arm64-defconfig 
(https://download.01.org/0day-ci/archive/20260520/[email protected]/config)
compiler: aarch64-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20260520/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: 
https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

   drivers/gpu/drm/imagination/pvr_power.c: In function 
'pvr_power_device_suspend':
>> drivers/gpu/drm/imagination/pvr_power.c:382:23: error: too few arguments to 
>> function 'pvr_power_fw_disable'; expected 3, have 2
     382 |                 err = pvr_power_fw_disable(pvr_dev, false);
         |                       ^~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/imagination/pvr_power.c:93:1: note: declared here
      93 | pvr_power_fw_disable(struct pvr_device *pvr_dev, bool hard_reset, 
bool rpm_suspend)
         | ^~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/imagination/pvr_power.c: In function 
'pvr_power_device_resume':
>> drivers/gpu/drm/imagination/pvr_power.c:412:23: error: too few arguments to 
>> function 'pvr_power_fw_enable'; expected 2, have 1
     412 |                 err = pvr_power_fw_enable(pvr_dev);
         |                       ^~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/imagination/pvr_power.c:122:1: note: declared here
     122 | pvr_power_fw_enable(struct pvr_device *pvr_dev, bool rpm_resume)
         | ^~~~~~~~~~~~~~~~~~~


vim +/pvr_power_fw_disable +382 drivers/gpu/drm/imagination/pvr_power.c

   368  
   369  int
   370  pvr_power_device_suspend(struct device *dev)
   371  {
   372          struct platform_device *plat_dev = to_platform_device(dev);
   373          struct drm_device *drm_dev = platform_get_drvdata(plat_dev);
   374          struct pvr_device *pvr_dev = to_pvr_device(drm_dev);
   375          int err = 0;
   376          int idx;
   377  
   378          if (!drm_dev_enter(drm_dev, &idx))
   379                  return -EIO;
   380  
   381          if (pvr_dev->fw_dev.initialised) {
 > 382                  err = pvr_power_fw_disable(pvr_dev, false);
   383                  if (err)
   384                          goto err_drm_dev_exit;
   385          }
   386  
   387          err = pvr_dev->device_data->pwr_ops->power_off(pvr_dev);
   388  
   389  err_drm_dev_exit:
   390          drm_dev_exit(idx);
   391  
   392          return err;
   393  }
   394  
   395  int
   396  pvr_power_device_resume(struct device *dev)
   397  {
   398          struct platform_device *plat_dev = to_platform_device(dev);
   399          struct drm_device *drm_dev = platform_get_drvdata(plat_dev);
   400          struct pvr_device *pvr_dev = to_pvr_device(drm_dev);
   401          int idx;
   402          int err;
   403  
   404          if (!drm_dev_enter(drm_dev, &idx))
   405                  return -EIO;
   406  
   407          err = pvr_dev->device_data->pwr_ops->power_on(pvr_dev);
   408          if (err)
   409                  goto err_drm_dev_exit;
   410  
   411          if (pvr_dev->fw_dev.initialised) {
 > 412                  err = pvr_power_fw_enable(pvr_dev);
   413                  if (err)
   414                          goto err_power_off;
   415          }
   416  
   417          drm_dev_exit(idx);
   418  
   419          return 0;
   420  
   421  err_power_off:
   422          pvr_dev->device_data->pwr_ops->power_off(pvr_dev);
   423  
   424  err_drm_dev_exit:
   425          drm_dev_exit(idx);
   426  
   427          return err;
   428  }
   429  

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

Reply via email to