[drm-xe:drm-xe-next 3/4] drivers/gpu/drm/xe/xe_pm.c:606:26: error: 'struct dev_pm_info' has no member named 'runtime_status'

kernel test robot lkp at intel.com
Sat Sep 7 07:58:15 UTC 2024


tree:   https://gitlab.freedesktop.org/drm/xe/kernel.git drm-xe-next
head:   0c841e47d8d94bd0f5444a25052d86c0b1f2c2e8
commit: cb85e39dc5d1717fab82810984cce0e54712a3c2 [3/4] drm/xe: Suppress missing outer rpm protection warning
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20240907/202409071530.6dcOf16E-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 13.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240907/202409071530.6dcOf16E-lkp@intel.com/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 <lkp at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202409071530.6dcOf16E-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

   drivers/gpu/drm/xe/xe_pm.c: In function 'xe_pm_suspending_or_resuming':
>> drivers/gpu/drm/xe/xe_pm.c:606:26: error: 'struct dev_pm_info' has no member named 'runtime_status'
     606 |         return dev->power.runtime_status == RPM_SUSPENDING ||
         |                          ^
   drivers/gpu/drm/xe/xe_pm.c:607:27: error: 'struct dev_pm_info' has no member named 'runtime_status'
     607 |                 dev->power.runtime_status == RPM_RESUMING;
         |                           ^
>> drivers/gpu/drm/xe/xe_pm.c:608:1: warning: control reaches end of non-void function [-Wreturn-type]
     608 | }
         | ^


vim +606 drivers/gpu/drm/xe/xe_pm.c

   597	
   598	/*
   599	 * Very unreliable! Should only be used to suppress the false positive case
   600	 * in the missing outer rpm protection warning.
   601	 */
   602	static bool xe_pm_suspending_or_resuming(struct xe_device *xe)
   603	{
   604		struct device *dev = xe->drm.dev;
   605	
 > 606		return dev->power.runtime_status == RPM_SUSPENDING ||
   607			dev->power.runtime_status == RPM_RESUMING;
 > 608	}
   609	

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


More information about the Intel-xe mailing list